Skip to content

Commit

Permalink
chore: fix pnpm cache
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Jul 7, 2024
1 parent ff76223 commit 4e21695
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ jobs:

- uses: volta-cli/action@v4

- name: Get pnpm store directory
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ~/.pnpm-store
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
Expand Down

0 comments on commit 4e21695

Please sign in to comment.