Skip to content

Commit

Permalink
Add workaround to cache yarn dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 24, 2023
1 parent 76a5e86 commit 2af78b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: corepack
run: corepack enable
# Yarn dependencies cannot be cached until yarn is installed
# Workaround: https://github.com/actions/setup-node/issues/531
- name: cache
uses: actions/setup-node@v3
with:
cache: yarn
- name: install
run: yarn
- name: lint
Expand Down

0 comments on commit 2af78b8

Please sign in to comment.