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 3333 uses : actions/setup-node@v3
3434 with :
3535 node-version : ${{ matrix.node-version }}
36+ cache : ' npm'
3637
3738 - name : Use cached node_modules (tailwindcss)
3839 id : cache-tailwindcss
Original file line number Diff line number Diff line change 2828 node-version : ${{ matrix.node-version }}
2929 cache : ' npm'
3030
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+
3140 - name : Install dependencies
41+ if : steps.cache.outputs.cache-hit != 'true'
3242 run : npm install
3343 env :
3444 CI : true
Original file line number Diff line number Diff line change 2525 registry-url : ' https://registry.npmjs.org'
2626 cache : ' npm'
2727
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+
2837 - name : Install dependencies
38+ if : steps.cache.outputs.cache-hit != 'true'
2939 run : npm install
3040 env :
3141 CI : true
Original file line number Diff line number Diff line change 2525 registry-url : ' https://registry.npmjs.org'
2626 cache : ' npm'
2727
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+
2837 - name : Install dependencies
38+ if : steps.cache.outputs.cache-hit != 'true'
2939 run : npm install
3040 env :
3141 CI : true
You can’t perform that action at this time.
0 commit comments