Skip to content

Commit a8b8a98

Browse files
fix caching to reduce pain
1 parent 8816f2d commit a8b8a98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
node-version: '20.18.1'
2323

2424
- name: Cache Yarn
25+
id: yarn-cache
2526
uses: actions/cache@v3
2627
with:
2728
path: |
@@ -35,6 +36,7 @@ jobs:
3536
run: npm install -g yarn && yarn config set ignore-engines true
3637

3738
- name: Cache node_modules
39+
id: node-modules-cache
3840
uses: actions/cache@v3
3941
with:
4042
path: node_modules
@@ -43,7 +45,7 @@ jobs:
4345
${{ runner.os }}-node-modules-
4446
4547
- name: Install dependencies
46-
if: steps.yarn-cache.outputs.cache-hit != 'true'
48+
if: steps.node-modules-cache.outputs.cache-hit != 'true'
4749
run: yarn install
4850

4951
- name: Run build script

0 commit comments

Comments
 (0)