Skip to content

Commit

Permalink
Revert "ci(workflow): add 'npm' cache for actions/setup-node in .gith…
Browse files Browse the repository at this point in the history
…ub/workflows (anuraghazra#1382)"

This reverts commit 2723f00.
  • Loading branch information
anuraghazra committed Oct 13, 2021
1 parent 2723f00 commit 596a4ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 596a4ec

Please sign in to comment.