Skip to content

Commit 959da66

Browse files
authored
Update npm.yml
1 parent 196bea7 commit 959da66

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/npm.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ env:
1212
NODE: 16
1313

1414
jobs:
15-
run:
16-
name: NPM Installation
17-
runs-on: ubuntu-latest
18-
15+
build:
16+
strategy:
17+
matrix:
18+
platform: [ubuntu-latest, windows-latest]
19+
node-version: [12.x, 14.x, 16.x, 17.x]
20+
runs-on: ${{ matrix.platform }}
1921
steps:
2022
- name: Clone repository
2123
uses: actions/checkout@v3
2224

2325
- name: Set up Node.js
2426
uses: actions/setup-node@v3
2527
with:
26-
node-version: ${{ env.NODE }}
28+
node-version: ${{ env.node-version }}
2729

2830
- name: Install npm dependencies
2931
run: npm install

0 commit comments

Comments
 (0)