Skip to content

Commit 531bd61

Browse files
committed
fix: update cache paths and keys in build workflow for Yarn
- fix for issue #339
1 parent e45284c commit 531bd61

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
node-version: ${{ matrix.node-version }}
2323
- uses: actions/cache@v4
2424
with:
25-
path: ~/.npm
26-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25+
path: |
26+
~/.cache/yarn
27+
**/node_modules
28+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2729
restore-keys: |
28-
${{ runner.os }}-node-
30+
${{ runner.os }}-yarn-
2931
- name: Set output
3032
id: vars
3133
run: echo name=tag::${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)