Skip to content

Commit be79dab

Browse files
XhmikosRnickmerwin
authored andcommitted
CI: use npm ci on Node.js >=8.
1 parent ef51945 commit be79dab

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ jobs:
2626
- run: node --version
2727
- run: npm --version
2828

29-
- name: Install npm dependencies
30-
run: npm install # switch to `npm ci` when Node.js 6 support is dropped
29+
# remove this block when Node.js 6.x is dropped
30+
- name: Install npm dependencies (npm i)
31+
run: npm install
32+
if: matrix.node < 8
33+
34+
- name: Install npm dependencies (npm ci)
35+
run: npm ci
36+
if: matrix.node >= 8
3137

3238
- name: Run lint
3339
run: npm run lint

0 commit comments

Comments
 (0)