From 0e77fce171aaaca1134e5336d935c1fc17e31e4f Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni Date: Sat, 31 Jul 2021 19:38:16 +0530 Subject: [PATCH] feat: update CI inbuilt cache env --- .github/workflows/ci.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e53fbfdb..a01786e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,32 +15,23 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node: [15] + node: [16] steps: - name: Checkout 🛎 uses: actions/checkout@master - name: Setup node environment 🏗 - uses: actions/setup-node@v2.1.5 + uses: actions/setup-node@v2.3.0 with: node-version: ${{ matrix.node }} registry-url: https://registry.npmjs.org/ - - - name: Get npm cache directory 🤖 - id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" - - - name: Restore cached node_modules ⚡️ - uses: actions/cache@v2.1.5 - with: - path: ${{ steps.npm-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node- + check-latest: true + cache: 'npm' - name: Install dependencies 📦 if: steps.cache.outputs.cache-hit != 'true' - run: npm ci --prefer-offline --no-audit + run: npm ci --prefer-offline --no-audit --no-optional - name: Run linter 👀 run: npm run lint