Skip to content

Commit 4fbb835

Browse files
committed
Use npm install instead of npm ci on Node.js 14
1 parent 2ec2156 commit 4fbb835

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/node.js.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ jobs:
2424
uses: actions/setup-node@v1
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- run: npm ci
27+
# npm of 14.x is not compatible with lockfileVersion 3, that's why we use `install` here instead of `ci`
28+
- if: matrix.node-version == '14.x'
29+
run: npm install
30+
- if: matrix.node-version != '14.x'
31+
run: npm ci
2832
- run: npm run build --if-present
2933
- run: npm run lint
3034
- run: npm test

0 commit comments

Comments
 (0)