Skip to content

Commit ec869cb

Browse files
committed
chore(actions): updated yarn cache in actions
1 parent d30a518 commit ec869cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/lint_and_test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ jobs:
2626
node-version: ${{ matrix.node-version }}
2727

2828
# 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
3131
run: echo "::set-output name=dir::$(yarn cache dir)"
3232

3333
- name: Use yarn cache
3434
uses: actions/cache@v1
35+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
3536
with:
36-
path: ${{ steps.yarn-cache.outputs.dir }}
37+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
3738
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3839
restore-keys: |
3940
${{ runner.os }}-yarn-

0 commit comments

Comments
 (0)