Skip to content

Commit

Permalink
Use setup-node to cache yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinovantes committed Jan 23, 2024
1 parent 4b47b55 commit f57ef79
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Save yarn cache location to env
run: echo "YARN_CACHE=$(yarn cache dir)" >> $GITHUB_ENV

- name: Cache node_modules
uses: actions/cache@v3
- name: Set up node
uses: actions/setup-node@v4
with:
path: ${{ env.YARN_CACHE }}
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock', '**/package-lock.json') }}
node-version: 20
cache: yarn

- name: Install dependencies
run: yarn install
run: yarn install --frozen-lockfile

- name: Run linter
run: yarn lint
Expand Down

0 comments on commit f57ef79

Please sign in to comment.