Skip to content

Commit f5d2ad6

Browse files
author
BrainWangs
committed
fix: resolve pnpm version conflict and upgrade checkout to v5
Deploy workflow was failing with ERR_PNPM_BAD_PM_VERSION: deploy.yml pinned pnpm to 11.13.0 while package.json packageManager pins pnpm@11.15.1+sha512. Removing the version input lets pnpm/action-setup@v4 read from packageManager. Also upgrade actions/checkout v4 to v5 to silence Node.js 20 deprecation warning.
1 parent f745325 commit f5d2ad6

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,15 @@ jobs:
2323

2424
steps:
2525
- name: "☁️ Checkout repository"
26-
uses: actions/checkout@v4
26+
# v4 runs on Node 20 (deprecated Sep 2025); v5 runs on Node 24.
27+
uses: actions/checkout@v5
2728

2829
- name: "📦 Install pnpm"
30+
# Intentionally no `version` input — pnpm/action-setup@v4 reads
31+
# the `packageManager` field in package.json (currently
32+
# pnpm@11.15.1+sha512...). Pinning a different version here caused
33+
# ERR_PNPM_BAD_PM_VERSION because it conflicts with package.json.
2934
uses: pnpm/action-setup@v4
30-
with:
31-
version: "11.13.0"
3235

3336
- name: "⚡ Use Node.js"
3437
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)