Skip to content

Commit

Permalink
ci: Fix caching
Browse files Browse the repository at this point in the history
  • Loading branch information
chloe463 committed Dec 12, 2024
1 parent ac7bbea commit e1a4f48
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/reusable-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,11 @@ jobs:
node-version-file: ".node-version"
cache: "yarn"

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

- name: Restore cache for yarn and lerna
uses: actions/[email protected]
id: yarn-cache
- name: cache node_modules
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
node_modules
*/*/node_modules
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

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

0 comments on commit e1a4f48

Please sign in to comment.