Skip to content

Commit 89c5698

Browse files
committed
ci: fix multi-version
1 parent a66097a commit 89c5698

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/npm-build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ on: push
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: ['18.x', '20.x', '23.x']
15+
1116
steps:
1217
- uses: actions/checkout@v4
1318
- uses: actions/setup-node@v4
1419
with:
15-
node-version: 18
16-
node-version: 20
17-
node-version: 23
20+
node-version: ${{ matrix.node-version }}
1821
- run: npm ci
1922
- run: npm test

0 commit comments

Comments
 (0)