Skip to content

Commit 26104c5

Browse files
Fix cache path using step outputs instead of env vars
Co-Authored-By: Warp <agent@warp.dev>
1 parent 9ed37e7 commit 26104c5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/preview-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ jobs:
3434
version: 9
3535

3636
- name: Get pnpm store directory
37+
id: pnpm-cache
3738
shell: bash
3839
run: |
39-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
40+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT
4041
4142
- name: Setup pnpm cache
4243
uses: actions/cache@v4
4344
with:
44-
path: ${{ env.STORE_PATH }}
45+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
4546
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
4647
restore-keys: |
4748
${{ runner.os }}-pnpm-store-

0 commit comments

Comments
 (0)