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