File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- uses : actions/checkout@v1
16
16
- name : setup node
17
- uses : actions/setup-node@v2
17
+ uses : actions/setup-node@v1
18
18
with :
19
19
node-version : " 12.x"
20
- cache : npm
21
20
22
21
- name : npm install, generate readme
23
22
run : |
Original file line number Diff line number Diff line change @@ -16,10 +16,20 @@ jobs:
16
16
- uses : actions/checkout@v2
17
17
18
18
- name : Setup Node
19
- uses : actions/setup-node@v2
19
+ uses : actions/setup-node@v1
20
20
with :
21
21
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-
23
33
24
34
- name : Install & Test
25
35
run : |
You can’t perform that action at this time.
0 commit comments