Skip to content

Commit

Permalink
Update use of actions/cache (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefcameron authored Aug 17, 2022
1 parent 13a5d9e commit 00c502d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup environment
id: setups
run: |-
echo "::set-output name=yarn_cache::$(yarn cache dir)"
echo "::set-output name=yarn_cache_dir::$(yarn cache dir)"
- name: Setup Node
uses: actions/setup-node@v3
Expand All @@ -27,10 +27,13 @@ jobs:
check-latest: true

- name: Yarn cache
uses: actions/cache@v1
uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.setups.outputs.yarn_cache }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-node-12
path: ${{ steps.setups.outputs.yarn_cache_dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install packages
run: yarn --frozen-lockfile
Expand Down

0 comments on commit 00c502d

Please sign in to comment.