Skip to content

Commit e089cd2

Browse files
committed
ci(action): use node lts in workflows
1 parent 5385ee3 commit e089cd2

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/release.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@ jobs:
1414
needs: lint-and-test
1515

1616
runs-on: ubuntu-latest
17-
env:
18-
node-version: 18
1917

2018
steps:
2119
- name: Checkout project
2220
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
2321
with:
2422
persist-credentials: false
25-
- name: Use Node.js ${{ env.node-version }}
23+
- name: Use Node.js
2624
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
2725
with:
28-
node-version: ${{ env.node-version }}
26+
node-version: 'lts/*'
2927
- name: Install packages
3028
run: npm ci
3129
- name: Run Semantic Release

.github/workflows/test.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,23 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
node-version: [16, 18, 20]
1514
os: [ubuntu-latest, windows-latest, macos-latest]
1615

1716
steps:
1817
- name: Checkout project
1918
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
20-
- name: Use Node.js ${{ matrix.node-version }}
19+
- name: Use Node.js
2120
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
2221
with:
23-
node-version: ${{ matrix.node-version }}
22+
node-version: 'lts/*'
2423
- name: Install packages
2524
run: npm ci
2625
- name: Check codestyle compliance
2726
run: npm run lint
2827
- name: Run tests
2928
run: npm run test
3029
- name: Upload coverage reports to Codecov
31-
if: ${{ (matrix.os == 'ubuntu-latest') && (matrix.node-version == 20) }}
30+
if: ${{ matrix.os == 'ubuntu-latest' }}
3231
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
3332
with:
3433
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)