Skip to content

fix(ci): read pnpm version from packageManager (fixes ERR_PNPM_BAD_PM_VERSION)#10

Merged
ralyodio merged 1 commit into
masterfrom
fix/pnpm-action-packageManager-conflict
Jun 12, 2026
Merged

fix(ci): read pnpm version from packageManager (fixes ERR_PNPM_BAD_PM_VERSION)#10
ralyodio merged 1 commit into
masterfrom
fix/pnpm-action-packageManager-conflict

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Problem

CI is failing on every run with:

ERR_PNPM_BAD_PM_VERSION
Multiple versions of pnpm specified:
  - version 9 in the GitHub Action config with the key "version"
  - version pnpm@10.0.0 in the package.json with the key "packageManager"

ci.yml (version: 9) and test.yml (version: 9.12.0) pinned a pnpm version for pnpm/action-setup@v4 that conflicts with package.json's "packageManager": "pnpm@10.0.0". action-setup@v4 refuses the mismatch.

These workflows were installed via the sh1pt node-pnpm-ci / node-pnpm-test action packs, which hardcoded the version. Root-cause fix for the packs: profullstack/sh1pt#720.

Fix

Remove the pinned version: input from both workflows so action-setup reads the version from packageManager — the single source of truth.

🤖 Generated with Claude Code

ci.yml and test.yml pinned `version:` for pnpm/action-setup@v4 (9 and
9.12.0), conflicting with package.json's "packageManager": "pnpm@10.0.0"
and failing every run with ERR_PNPM_BAD_PM_VERSION. Remove the pinned
input so action-setup reads the version from packageManager.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio ralyodio merged commit d06b1e3 into master Jun 12, 2026
4 of 6 checks passed
@ralyodio ralyodio deleted the fix/pnpm-action-packageManager-conflict branch June 12, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant