Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cccb7c8

Browse files
committedAug 18, 2022
chore: use lts node
1 parent c5bff98 commit cccb7c8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
 

‎.github/workflows/pre-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v2
1313
with:
14-
node-version: '*'
14+
node-version: 'lts/*'
1515
cache: 'npm'
1616
check-latest: true
1717
registry-url: 'https://registry.npmjs.org'

‎.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: ${{ steps.release.outputs.releases_created }}
2222
- uses: actions/setup-node@v2
2323
with:
24-
node-version: '*'
24+
node-version: 'lts/*'
2525
cache: 'npm'
2626
check-latest: true
2727
registry-url: 'https://registry.npmjs.org'

‎.github/workflows/test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ jobs:
2525

2626
steps:
2727
- uses: actions/checkout@v2
28-
- name: Installing with latest Node.js
28+
- name: Installing with LTS Node.js
2929
uses: actions/setup-node@v2
3030
with:
31-
node-version: '*'
31+
node-version: 'lts/*'
3232
check-latest: true
3333
- name: NPM Install
3434
run: npm install
3535
- name: Switching to Node.js ${{ matrix.node-version }} to run tests
3636
uses: actions/setup-node@v2
37-
if: "${{ matrix.node-version != '*' }}"
37+
if: "${{ matrix.node-version != 'lts/*' }}"
3838
with:
3939
node-version: ${{ matrix.node-version }}
4040
check-latest: true
4141
- name: Linting
4242
run: npm run format:ci
43-
if: "${{ matrix.node-version == '*' }}"
43+
if: "${{ matrix.node-version == 'lts/*' }}"
4444
- name: Run tests against next@latest
4545
run: npm test
4646
canary:
@@ -61,18 +61,18 @@ jobs:
6161
if: github.ref_name == 'main'
6262
steps:
6363
- uses: actions/checkout@v2
64-
- name: Installing with latest Node.js
64+
- name: Installing with LTS Node.js
6565
uses: actions/setup-node@v2
6666
with:
67-
node-version: '*'
67+
node-version: 'lts/*'
6868
check-latest: true
6969
- name: NPM Install
7070
run: npm install
7171
- name: Install Next.js Canary
7272
run: npm install -D next@canary --legacy-peer-deps
7373
- name: Switching to Node.js ${{ matrix.node-version }} to run tests
7474
uses: actions/setup-node@v2
75-
if: "${{ matrix.node-version != '*' }}"
75+
if: "${{ matrix.node-version != 'lts/*' }}"
7676
with:
7777
node-version: ${{ matrix.node-version }}
7878
check-latest: true

0 commit comments

Comments
 (0)
Please sign in to comment.