Skip to content

Commit 405267f

Browse files
committed
CI: Use actions/setup-node pnpm cache for deploy; remove redundant pnpm store cache steps
1 parent 8329dfa commit 405267f

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/deploy-site.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,15 @@ jobs:
3939
uses: actions/setup-node@v4
4040
with:
4141
node-version: '20'
42+
cache: 'pnpm'
43+
cache-dependency-path: 'site/pnpm-lock.yaml'
4244

4345
- name: Setup pnpm
4446
uses: pnpm/action-setup@v4
4547
with:
4648
version: latest
4749

48-
- name: Get pnpm store directory
49-
shell: bash
50-
run: |
51-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
52-
53-
- name: Setup pnpm cache
54-
uses: actions/cache@v4
55-
with:
56-
path: ${{ env.STORE_PATH }}
57-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
58-
restore-keys: |
59-
${{ runner.os }}-pnpm-store-
50+
# Rely on actions/setup-node pnpm cache; no manual pnpm store cache needed
6051

6152
- name: Install site dependencies
6253
run: |

0 commit comments

Comments
 (0)