Skip to content

Commit 6e123b6

Browse files
cache
1 parent a422ccd commit 6e123b6

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,29 @@ jobs:
2121
with:
2222
node-version: '20'
2323

24+
- name: Cache Yarn
25+
uses: actions/cache@v3
26+
with:
27+
path: |
28+
~/.npm
29+
~/.cache/yarn
30+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-yarn-
33+
2434
- name: Install Yarn
2535
run: npm install -g yarn
2636

37+
- name: Cache node_modules
38+
uses: actions/cache@v3
39+
with:
40+
path: node_modules
41+
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-node-modules-
44+
2745
- name: Install dependencies
28-
run: npm install
46+
run: yarn install
2947

3048
- name: Run build script
3149
run: .\build.bat
@@ -34,4 +52,4 @@ jobs:
3452
uses: actions/upload-artifact@v4
3553
with:
3654
name: dist
37-
path: dist/*.exe
55+
path: dist/*.exe

0 commit comments

Comments
 (0)