Skip to content

Commit

Permalink
CI: use npm ci on Node.js >=8.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and nickmerwin committed Nov 25, 2019
1 parent ef51945 commit be79dab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ jobs:
- run: node --version
- run: npm --version

- name: Install npm dependencies
run: npm install # switch to `npm ci` when Node.js 6 support is dropped
# remove this block when Node.js 6.x is dropped
- name: Install npm dependencies (npm i)
run: npm install
if: matrix.node < 8

- name: Install npm dependencies (npm ci)
run: npm ci
if: matrix.node >= 8

- name: Run lint
run: npm run lint
Expand Down

0 comments on commit be79dab

Please sign in to comment.