Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
chore(ci): enhance yarn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 8, 2023
1 parent 397d0b1 commit 971e920
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,18 @@ jobs:

- name: 🏗 Setup nodejs corepack
run: corepack enable
# corepack prepare yarn@stable --activate

- name: 🏗 Get yarn config
id: yarn_config
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/[email protected]
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn_config.outputs.cache_folder }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 🏗 Install dependencies
run: yarn install --immutable
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
enableTelemetry: false

0 comments on commit 971e920

Please sign in to comment.