File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 15
15
uses : actions/setup-node@v2
16
16
with :
17
17
node-version : 12
18
+ - name : Cache node modules
19
+ uses : actions/cache@v2
20
+ env :
21
+ cache-name : cache-node-modules
22
+ with :
23
+ # npm cache files are stored in `~/.npm` on Linux/macOS
24
+ path : ~/.npm
25
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-build-${{ env.cache-name }}-
28
+ ${{ runner.os }}-build-
29
+ ${{ runner.os }}-
18
30
- name : Install dependencies
19
31
env :
20
32
CI : true
33
45
- uses : actions/setup-node@v2
34
46
with :
35
47
node-version : 12
48
+ - name : Cache node modules
49
+ uses : actions/cache@v2
50
+ env :
51
+ cache-name : cache-node-modules
52
+ with :
53
+ # npm cache files are stored in `~/.npm` on Linux/macOS
54
+ path : ~/.npm
55
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
56
+ restore-keys : |
57
+ ${{ runner.os }}-build-${{ env.cache-name }}-
58
+ ${{ runner.os }}-build-
59
+ ${{ runner.os }}-
36
60
- env :
37
61
CI : true
38
62
run : |
Original file line number Diff line number Diff line change 12
12
uses : actions/setup-node@v2
13
13
with :
14
14
node-version : 12
15
+ - name : Cache node modules
16
+ uses : actions/cache@v2
17
+ env :
18
+ cache-name : cache-node-modules
19
+ with :
20
+ # npm cache files are stored in `~/.npm` on Linux/macOS
21
+ path : ~/.npm
22
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
23
+ restore-keys : |
24
+ ${{ runner.os }}-build-${{ env.cache-name }}-
25
+ ${{ runner.os }}-build-
26
+ ${{ runner.os }}-
15
27
- name : Install dependencies
16
28
env :
17
29
CI : true
29
41
- uses : actions/setup-node@v2
30
42
with :
31
43
node-version : 12
44
+ - name : Cache node modules
45
+ uses : actions/cache@v2
46
+ env :
47
+ cache-name : cache-node-modules
48
+ with :
49
+ # npm cache files are stored in `~/.npm` on Linux/macOS
50
+ path : ~/.npm
51
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
52
+ restore-keys : |
53
+ ${{ runner.os }}-build-${{ env.cache-name }}-
54
+ ${{ runner.os }}-build-
55
+ ${{ runner.os }}-
32
56
- env :
33
57
CI : true
34
58
run : |
You can’t perform that action at this time.
0 commit comments