File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 80
80
if : matrix.os == 'windows-latest'
81
81
run : npm i -g npm
82
82
83
+ - name : Get npm cache directory
84
+ id : npm-cache
85
+ run : |
86
+ echo "::set-output name=dir::$(npm config get cache)"
87
+
88
+ - uses : actions/cache@v1
89
+ with :
90
+ path : ${{ steps.npm-cache.outputs.dir }}
91
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
92
+ restore-keys : |
93
+ ${{ runner.os }}-node-
94
+
83
95
- name : Install dependencies
84
96
run : npm i
85
97
@@ -124,6 +136,18 @@ jobs:
124
136
if : matrix.os == 'windows-latest'
125
137
run : npm i -g npm
126
138
139
+ - name : Get npm cache directory
140
+ id : npm-cache
141
+ run : |
142
+ echo "::set-output name=dir::$(npm config get cache)"
143
+
144
+ - uses : actions/cache@v1
145
+ with :
146
+ path : ${{ steps.npm-cache.outputs.dir }}
147
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
148
+ restore-keys : |
149
+ ${{ runner.os }}-node-
150
+
127
151
- name : Install dependencies
128
152
run : npm i
129
153
You can’t perform that action at this time.
0 commit comments