Skip to content

Commit c898c74

Browse files
committed
fix command for getting yarn cache di
1 parent 4dedb1a commit c898c74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v2
2626
- name: Get yarn cache
2727
id: yarn-cache
28-
run: echo "::set-output name=dir::$(yarn cache dir)"
28+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
2929
- uses: actions/cache@v1
3030
with:
3131
path: ${{ steps.yarn-cache.outputs.dir }}
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v2
6767
- name: Get yarn cache
6868
id: yarn-cache
69-
run: echo "::set-output name=dir::$(yarn cache dir)"
69+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
7070
- uses: actions/cache@v1
7171
with:
7272
path: ${{ steps.yarn-cache.outputs.dir }}

0 commit comments

Comments
 (0)