Skip to content

Commit 78c0d14

Browse files
committed
fix(ci): update cache path for yarn 2+
1 parent ba21d61 commit 78c0d14

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ jobs:
1313
matrix:
1414
node-version: [20.x]
1515
steps:
16-
- name: Find yarn cache
17-
id: find-yarn-cache
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
1916
- name: git checkout
2017
uses: actions/checkout@v4
21-
- name: Cache yarn dependencies
18+
- name: yarn cache
2219
uses: actions/cache@v4
2320
with:
24-
path: ${{steps.find-yarn-cache.outputs.dir}}
21+
path: ~/.yarn/berry/cache
2522
key: ${{runner.os}}-node${{matrix.node-version}}-yarn-${{hashFiles('**/yarn.lock')}}
2623
restore-keys: ${{runner.os}}-node${{matrix.node-version}}-yarn-
2724
- name: Set up Node.js v${{matrix.node-version}}
@@ -36,15 +33,12 @@ jobs:
3633
runs-on: ubuntu-latest
3734
needs: build-and-test
3835
steps:
39-
- name: Find yarn cache
40-
id: find-yarn-cache
41-
run: echo "::set-output name=dir::$(yarn cache dir)"
4236
- name: git checkout
4337
uses: actions/checkout@v4
44-
- name: Cache yarn dependencies
38+
- name: yarn cache
4539
uses: actions/cache@v4
4640
with:
47-
path: ${{steps.find-yarn-cache.outputs.dir}}
41+
path: ~/.yarn/berry/cache
4842
key: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-${{hashFiles('**/yarn.lock')}}
4943
restore-keys: ${{runner.os}}-node${{env.DEPLOY_NODE_VERSION}}-yarn-
5044
- name: Set up Node.js

0 commit comments

Comments
 (0)