Skip to content

Commit 61eb8c6

Browse files
docs: update the caching example
1 parent 0609f09 commit 61eb8c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,21 +112,19 @@ jobs:
112112

113113
- uses: pnpm/action-setup@v2
114114
name: Install pnpm
115-
id: pnpm-install
116115
with:
117116
version: 7
118117
run_install: false
119118

120119
- name: Get pnpm store directory
121-
id: pnpm-cache
122120
shell: bash
123121
run: |
124-
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
122+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
125123
126124
- uses: actions/cache@v3
127125
name: Setup pnpm cache
128126
with:
129-
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
127+
path: ${{ env.STORE_PATH }}
130128
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
131129
restore-keys: |
132130
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)