Skip to content

Commit 0b715c7

Browse files
authored
Merge pull request #75 from ojeytonwilliams/fix/caching-example
docs: update the caching example
2 parents 2ed49cb + 61eb8c6 commit 0b715c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,19 @@ jobs:
116116

117117
- uses: pnpm/action-setup@v2
118118
name: Install pnpm
119-
id: pnpm-install
120119
with:
121120
version: 7
122121
run_install: false
123122

124123
- name: Get pnpm store directory
125-
id: pnpm-cache
126124
shell: bash
127125
run: |
128-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
126+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
129127
130128
- uses: actions/cache@v3
131129
name: Setup pnpm cache
132130
with:
133-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
131+
path: ${{ env.STORE_PATH }}
134132
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
135133
restore-keys: |
136134
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)