Skip to content

Commit

Permalink
use built in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Nov 11, 2024
1 parent 8da0359 commit 8b5fdbf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,13 @@ jobs:
run:
echo "dir=$(corepack yarn config get cacheFolder)" >> $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 Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- name: Install dependencies
run:
corepack yarn install --immutable
run: corepack yarn install --immutable
- name: Run linter
run: corepack yarn run lint
- name: Run Prettier
Expand Down

0 comments on commit 8b5fdbf

Please sign in to comment.