Skip to content

Commit

Permalink
fix(yarn): use cache from setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 11, 2022
1 parent 8b931c9 commit 362ffa8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions yarn-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,8 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: 'Prepare node_modules cache'
uses: actions/cache@v3
id: cache
with:
path: node_modules
key: ${{ runner.os }}-yarn-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-node_modules-
cache: 'yarn'

- name: 'Install yarn dependencies'
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
shell: bash

0 comments on commit 362ffa8

Please sign in to comment.