File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ jobs:
14
14
uses : actions/checkout@v2
15
15
with :
16
16
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
18
21
uses : actions/cache@v1
19
22
with :
20
- path : ~/.cache/ yarn
23
+ path : ${{ steps. yarn-cache.outputs.dir }}
21
24
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22
25
restore-keys : |
23
26
${{ runner.os }}-yarn-
@@ -57,10 +60,13 @@ jobs:
57
60
node-version : 12
58
61
registry-url : https://npm.pkg.github.com
59
62
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
61
67
uses : actions/cache@v1
62
68
with :
63
- path : ~/.cache/ yarn
69
+ path : ${{ steps. yarn-cache.outputs.dir }}
64
70
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
65
71
restore-keys : |
66
72
${{ runner.os }}-yarn-
You can’t perform that action at this time.
0 commit comments