File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -19,39 +19,39 @@ jobs:
1919 - name : Set up Node.js
2020 uses : actions/setup-node@v2
2121 with :
22- node-version : ' 16 '
22+ node-version : ' 20.18.1 '
2323
24- # Cache Yarn, Node Modules, and Yarn Global Cache
25- - name : Cache Yarn and Node Modules
24+ - name : Cache Yarn
2625 id : yarn-cache
2726 uses : actions/cache@v3
2827 with :
2928 path : |
30- ~/.yarn
31- ~/.cache/yarn
3229 ~/AppData/Local/Yarn/Cache
3330 ~/AppData/Roaming/npm-cache
34- node_modules
3531 key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
3632 restore-keys : |
3733 ${{ runner.os }}-yarn-
3834
3935 - name : Install Yarn
4036 run : npm install -g yarn && yarn config set ignore-engines true
4137
42- # Install dependencies only if cache was not restored
38+ - name : Cache node_modules
39+ id : node-modules-cache
40+ uses : actions/cache@v3
41+ with :
42+ path : node_modules
43+ key : ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
44+ restore-keys : |
45+ ${{ runner.os }}-node-modules-
46+
47+
4348 - name : Install dependencies
44- if : steps.yarn -cache.outputs.cache-hit != 'true'
45- run : yarn install --network-timeout 100000
49+ if : steps.node-modules -cache.outputs.cache-hit != 'true'
50+ run : yarn install
4651
47- - name : Tree
48- run : tree
49-
50- # Build script
5152 - name : Run build script
5253 run : .\build.bat
5354
54- # Archive build artifacts
5555 - name : Archive build artifacts
5656 uses : actions/upload-artifact@v4
5757 with :
You can’t perform that action at this time.
0 commit comments