File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ jobs:
26
26
node-version : ${{ matrix.node-version }}
27
27
28
28
# https://github.com/actions/cache/blob/master/examples.md#node---yarn
29
- - name : Get yarn cache directory
30
- id : yarn-cache
29
+ - name : Get yarn cache directory path
30
+ id : yarn-cache-dir-path
31
31
run : echo "::set-output name=dir::$(yarn cache dir)"
32
32
33
33
- name : Use yarn cache
34
34
uses : actions/cache@v1
35
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
35
36
with :
36
- path : ${{ steps.yarn-cache.outputs.dir }}
37
+ path : ${{ steps.yarn-cache-dir-path .outputs.dir }}
37
38
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
38
39
restore-keys : |
39
40
${{ runner.os }}-yarn-
You can’t perform that action at this time.
0 commit comments