From be79dab7f164da7762951fa5940dacdd3ec7ceff Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 21 Nov 2019 17:16:54 +0200 Subject: CI: use `npm ci` on Node.js >=8. --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26ad1ae..419d6c4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 -- cgit v1.2.3