File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ jobs:
28
28
node-version : ${{ matrix.node-version }}
29
29
30
30
- name : Use cached node_modules
31
- id : cache
31
+ id : cache-build
32
32
uses : actions/cache@v2
33
33
with :
34
34
path : node_modules
35
- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
35
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}-build
36
36
restore-keys : |
37
37
nodeModules-
38
38
- name : Install dependencies
39
- if : steps.cache.outputs.cache-hit != 'true'
39
+ if : steps.cache-build .outputs.cache-hit != 'true'
40
40
run : npm install
41
41
env :
42
42
CI : true
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ jobs:
24
24
scope : ' @mertasan'
25
25
26
26
- name : Use cached node_modules
27
- id : cache
27
+ id : cache-publish
28
28
uses : actions/cache@v2
29
29
with :
30
30
path : node_modules
31
- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
31
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}-publish
32
32
restore-keys : |
33
33
nodeModules-
34
34
- name : Install dependencies
35
- if : steps.cache.outputs.cache-hit != 'true'
35
+ if : steps.cache-publish .outputs.cache-hit != 'true'
36
36
run : npm install
37
37
env :
38
38
CI : true
Original file line number Diff line number Diff line change 14
14
jobs :
15
15
build :
16
16
runs-on : ubuntu-latest
17
-
18
17
strategy :
19
18
matrix :
20
19
node-version : [12, 14, 16]
@@ -28,16 +27,16 @@ jobs:
28
27
node-version : ${{ matrix.node-version }}
29
28
30
29
- name : Use cached node_modules
31
- id : cache
30
+ id : cache-tests
32
31
uses : actions/cache@v2
33
32
with :
34
33
path : node_modules
35
- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
34
+ key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}-tests
36
35
restore-keys : |
37
36
nodeModules-
38
37
39
38
- name : Install dependencies
40
- if : steps.cache.outputs.cache-hit != 'true'
39
+ if : steps.cache-tests .outputs.cache-hit != 'true'
41
40
run : npm install
42
41
env :
43
42
CI : true
You can’t perform that action at this time.
0 commit comments