Skip to content

Commit

Permalink
fix(yarn2): 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 362ffa8 commit 4a43c3c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions yarn2-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,7 @@ runs:
- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: 'Get yarn cache directory path'
id: yarn-cache-dir-path
shell: bash
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"

- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
cache: 'yarn'

- name: 'Install yarn dependencies'
run: yarn install
Expand Down

0 comments on commit 4a43c3c

Please sign in to comment.