File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 26
26
uses : actions/setup-node@v3
27
27
with :
28
28
node-version : ${{ matrix.node-version }}
29
+ cache : ' npm'
29
30
30
- - name : Use cached node_modules
31
- id : cache
32
- uses : actions/cache@v3
33
- with :
34
- path : node_modules
35
- key : nodeModules-${{ hashFiles('./package-lock.json') }}-${{ matrix.node-version }}
36
- restore-keys : |
37
- nodeModules-
38
31
- name : Install dependencies
39
- if : steps.cache.outputs.cache-hit != 'true'
40
32
run : npm install
41
33
env :
42
34
CI : true
Original file line number Diff line number Diff line change 23
23
with :
24
24
node-version : ${{ matrix.node-version }}
25
25
registry-url : ' https://registry.npmjs.org'
26
-
27
- - name : Use cached node_modules
28
- id : cache
29
- uses : actions/cache@v3
30
- with :
31
- path : node_modules
32
- key : nodeModules-${{ hashFiles('**/package-lock.json') }}-${{ matrix.node-version }}
33
- restore-keys : |
34
- nodeModules-
26
+ cache : ' npm'
35
27
36
28
- name : Install dependencies
37
- if : steps.cache.outputs.cache-hit != 'true'
38
29
run : npm install
39
30
env :
40
31
CI : true
You can’t perform that action at this time.
0 commit comments