Skip to content

Commit

Permalink
ci: Update yarn caching in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Oct 8, 2024
1 parent b0ac114 commit 299f588
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install global dependencies
run: npm i yarn -g
cache: yarn

- name: Install dependencies
run: yarn
Expand Down

0 comments on commit 299f588

Please sign in to comment.