File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 35
35
uses : actions/setup-node@v2
36
36
with :
37
37
node-version : ${{ matrix.node-version }}
38
+ cache : " npm"
38
39
39
40
- name : Use latest NPM
40
41
run : sudo npm i -g npm
69
70
uses : actions/setup-node@v2
70
71
with :
71
72
node-version : ${{ matrix.node-version }}
73
+ cache : " npm"
72
74
73
75
- name : Use latest NPM on ubuntu/macos
74
76
if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
78
80
if : matrix.os == 'windows-latest'
79
81
run : npm i -g npm
80
82
81
- - name : Get npm cache directory
82
- id : npm-cache-dir
83
- run : |
84
- echo "::set-output name=dir::$(npm config get cache)"
85
-
86
- - name : Cache Node.js modules
87
- id : cache
88
- uses : actions/cache@v2
89
- with :
90
- path : ${{ steps.npm-cache-dir.outputs.dir }}
91
- key : ${{ runner.os }}-${{ matrix.webpack-version }}-node-${{ hashFiles('**/package-lock.json') }}
92
- restore-keys : |
93
- ${{ runner.os }}-${{ matrix.webpack-version }}-node-
94
-
95
83
- name : Install dependencies
96
84
run : npm ci
97
85
You can’t perform that action at this time.
0 commit comments