From 596a4eccc12adeadb85815ce6a314785e3153741 Mon Sep 17 00:00:00 2001 From: Anurag Date: Wed, 13 Oct 2021 20:39:13 +0530 Subject: [PATCH] Revert "ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#1382)" This reverts commit 2723f00cb8bf069d3b9b4c8482df042482e9c8de. --- .github/workflows/generate-theme-doc.yml | 3 +-- .github/workflows/test.yml | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-theme-doc.yml b/.github/workflows/generate-theme-doc.yml index 2ff488a..9028044 100644 --- a/.github/workflows/generate-theme-doc.yml +++ b/.github/workflows/generate-theme-doc.yml @@ -14,10 +14,9 @@ jobs: steps: - uses: actions/checkout@v1 - name: setup node - uses: actions/setup-node@v2 + uses: actions/setup-node@v1 with: node-version: "12.x" - cache: npm - name: npm install, generate readme run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95eacb1..0eb0221 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,10 +16,20 @@ jobs: - uses: actions/checkout@v2 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v1 with: node-version: "12.x" - cache: npm + + - name: Cache node modules + uses: actions/cache@v2 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: + ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm-cache- - name: Install & Test run: |