Skip to content

Commit b166e45

Browse files
Update build.yml
1 parent b7afe9c commit b166e45

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,37 @@ jobs:
2121
with:
2222
node-version: '16'
2323

24-
- name: Cache Yarn
24+
# Cache Yarn, Node Modules, and Yarn Global Cache
25+
- name: Cache Yarn and Node Modules
2526
id: yarn-cache
2627
uses: actions/cache@v3
2728
with:
2829
path: |
30+
~/.yarn
31+
~/.cache/yarn
2932
~/AppData/Local/Yarn/Cache
3033
~/AppData/Roaming/npm-cache
34+
node_modules
3135
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
3236
restore-keys: |
3337
${{ runner.os }}-yarn-
3438
3539
- name: Install Yarn
3640
run: npm install -g yarn && yarn config set ignore-engines true
3741

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-
42+
# Install dependencies only if cache was not restored
4843
- name: Install dependencies
49-
if: steps.node-modules-cache.outputs.cache-hit != 'true'
50-
run: yarn install
44+
if: steps.yarn-cache.outputs.cache-hit != 'true'
45+
run: yarn install --network-timeout 100000
5146

47+
- name: Tree
48+
run: tree
49+
50+
# Build script
5251
- name: Run build script
5352
run: .\build.bat
5453

54+
# Archive build artifacts
5555
- name: Archive build artifacts
5656
uses: actions/upload-artifact@v4
5757
with:

0 commit comments

Comments
 (0)