Skip to content

Commit

Permalink
ci: cache pnpm install (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored Sep 22, 2023
1 parent 0e65cbf commit 42c35e6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,21 @@ jobs:
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- 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: Install dependencies
run: pnpm install

- name: Restore Node.js versions
id: cache-nodejs
Expand Down

0 comments on commit 42c35e6

Please sign in to comment.