File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1212
1313 strategy :
1414 matrix :
15- node-version : [12 .x, 14 .x, 16 .x]
15+ node-version : [16 .x, 18 .x, 20 .x]
1616 steps :
1717 - uses : actions/checkout@v3
1818 - name : Use Node.js ${{ matrix.node-version }}
@@ -22,19 +22,13 @@ jobs:
2222 - name : Install dependencies
2323 run : npm ci
2424
25- - name : Build for node 14 and 16
26- if : matrix.node-version != '12.x'
27- run : npm run build --if-present
28-
29- - name : Build for node 12
30- if : matrix.node-version == '12.x'
31- run : npm run build:cjs && npm run build:es
25+ - name : Build for node 16, 18 & 20
26+ run : npm run build
3227
3328 - name : Run unit tests
3429 run : npm test
3530
3631 - name : Verify ESM compatibility
37- if : matrix.node-version == '16.x'
3832 working-directory : ' ./test-esm'
3933 run : |
4034 npm ci
You can’t perform that action at this time.
0 commit comments