We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9079356 commit 04e219dCopy full SHA for 04e219d
.github/workflows/deploy-demo.yml
@@ -15,6 +15,20 @@ jobs:
15
with:
16
node-version: '12'
17
18
+ # see https://github.com/actions/cache/blob/main/examples.md#node---yarn
19
+ - name: Get yarn cache directory path
20
+ id: yarn-cache-dir-path
21
+ run: echo "::set-output name=dir::$(yarn cache dir)"
22
+
23
+ - name: Cache
24
+ uses: actions/cache@v2
25
+ id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
26
+ with:
27
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
28
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29
+ restore-keys: |
30
+ ${{ runner.os }}-yarn-
31
32
- name: Install
33
run: yarn install
34
0 commit comments