Skip to content

Commit 2fe9368

Browse files
fix: cache action
1 parent 84b552c commit 2fe9368

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ jobs:
1414
uses: actions/checkout@v2
1515
with:
1616
fetch-depth: 3
17-
- name: Cache node modules
17+
- name: Get Yarn Cache Directory
18+
id: yarn-cache
19+
run: echo "::set-output name=dir::$(yarn cache dir)"
20+
- name: Cache node dependencies
1821
uses: actions/cache@v1
1922
with:
20-
path: ~/.cache/yarn
23+
path: ${{ steps.yarn-cache.outputs.dir }}
2124
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
2225
restore-keys: |
2326
${{ runner.os }}-yarn-
@@ -57,10 +60,13 @@ jobs:
5760
node-version: 12
5861
registry-url: https://npm.pkg.github.com
5962
if: matrix.target == 'gpr'
60-
- name: Cache node modules
63+
- name: Get Yarn Cache Directory
64+
id: yarn-cache
65+
run: echo "::set-output name=dir::$(yarn cache dir)"
66+
- name: Cache node dependencies
6167
uses: actions/cache@v1
6268
with:
63-
path: ~/.cache/yarn
69+
path: ${{ steps.yarn-cache.outputs.dir }}
6470
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
6571
restore-keys: |
6672
${{ runner.os }}-yarn-

0 commit comments

Comments
 (0)