From ea91d8909583f99f068dad974d8f32943549a4ba Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 24 Jul 2021 06:14:02 +0530 Subject: [PATCH 1/2] ci: setup `npm` cache --- .github/workflows/nodejs.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a507ed8e3..20b59e5c8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,6 +33,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - name: Use latest NPM run: sudo npm i -g npm @@ -67,6 +68,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - name: Use latest NPM on ubuntu/macos if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' From 69f0448941bc66b9e3d04e3de1e66fcc589af3f1 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sat, 24 Jul 2021 06:23:50 +0530 Subject: [PATCH 2/2] fix: lint --- .github/workflows/nodejs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 20b59e5c8..dbdc35646 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,7 +33,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: "npm" - name: Use latest NPM run: sudo npm i -g npm @@ -68,7 +68,7 @@ jobs: uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: "npm" - name: Use latest NPM on ubuntu/macos if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'