Skip to content

Commit 988d8d0

Browse files
committed
Fix update-pnpm workflow failing due to pnpm version conflict
pnpm/action-setup@v4 now rejects having both a version input and a packageManager field in package.json. Update packageManager before running setup so it reads the latest version from package.json directly.
1 parent e1c17ae commit 988d8d0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/update-pnpm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
uses: actions/checkout@v6
1414
with:
1515
token: ${{ secrets.MAINTENANCE_TOKEN }}
16+
- name: Fetch latest pnpm version and update package.json
17+
run: |
18+
LATEST=$(npm view pnpm version)
19+
npm pkg set packageManager=pnpm@${LATEST}
1620
- name: Run Common Setup
1721
uses: ./.github/actions/setup
18-
with:
19-
pnpm-version: latest
20-
- name: Update pnpm version in package.json
21-
run: npm pkg set packageManager=pnpm@$(pnpm --version)
2222
- name: Update pnpm dependencies
2323
run: just update-pnpm
2424
- name: Build Templates

0 commit comments

Comments
 (0)