Skip to content

Commit d9bdbb3

Browse files
anuraghazraKab1r
authored andcommitted
Revert "ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (anuraghazra#1382)"
This reverts commit 2723f00.
1 parent 0010a18 commit d9bdbb3

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/generate-theme-doc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v1
1616
- name: setup node
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v1
1818
with:
1919
node-version: "12.x"
20-
cache: npm
2120

2221
- name: npm install, generate readme
2322
run: |

.github/workflows/test.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@ jobs:
1616
- uses: actions/checkout@v2
1717

1818
- name: Setup Node
19-
uses: actions/setup-node@v2
19+
uses: actions/setup-node@v1
2020
with:
2121
node-version: "12.x"
22-
cache: npm
22+
23+
- name: Cache node modules
24+
uses: actions/cache@v2
25+
env:
26+
cache-name: cache-node-modules
27+
with:
28+
path: ~/.npm
29+
key:
30+
${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
31+
restore-keys: |
32+
${{ runner.os }}-npm-cache-
2333
2434
- name: Install & Test
2535
run: |

0 commit comments

Comments
 (0)