Skip to content

Commit

Permalink
Merge pull request #75 from ojeytonwilliams/fix/caching-example
Browse files Browse the repository at this point in the history
docs: update the caching example
  • Loading branch information
KSXGitHub authored Jul 25, 2023
2 parents 2ed49cb + 61eb8c6 commit 0b715c7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,19 @@ jobs:

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
Expand Down

0 comments on commit 0b715c7

Please sign in to comment.