Skip to content

Commit

Permalink
chore: fix cache in build-and-lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Jun 19, 2024
1 parent 7d3318e commit 741451f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,23 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Setup turborepo cache
uses: dtinth/setup-github-actions-caching-for-turbo@v1

- name: Install dependencies
run: |
Expand Down

0 comments on commit 741451f

Please sign in to comment.