Skip to content

ci: switch pnpm/action-setup to packageManager-only#79

Merged
JohnMcLear merged 1 commit intomainfrom
ci/fix-pnpm-action-setup-conflict
May 9, 2026
Merged

ci: switch pnpm/action-setup to packageManager-only#79
JohnMcLear merged 1 commit intomainfrom
ci/fix-pnpm-action-setup-conflict

Conversation

@JohnMcLear
Copy link
Copy Markdown
Member

Summary

pnpm/action-setup@v6 errors with ERR_PNPM_BAD_PM_VERSION when both version: is set on the action and packageManager: is set in package.json — regardless of whether the values match. ether/etherpad-lite's package.json declares packageManager: pnpm@11.0.6, so the conflict bites every plugin's CI.

This PR drops the version: pin so pnpm/action-setup@v6 reads the canonical version from packageManager. For test workflows that check out etherpad-lite into ./etherpad-lite/, also adds package_json_file: ./etherpad-lite/package.json so the action can locate the file (since cwd has no package.json at install time).

Verified green on ether/ep_dynamic_default_content.

Pinning pnpm version on the action while ether/etherpad-lite's
package.json has "packageManager": "pnpm@11.0.6" triggers
ERR_PNPM_BAD_PM_VERSION regardless of the pinned value. Drop the
version pin and (for workflows that check out etherpad-lite into
./etherpad-lite/) point the action at the core's package.json so
it reads the canonical version from packageManager.
@qodo-code-review
Copy link
Copy Markdown

ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one.

@JohnMcLear JohnMcLear merged commit 38ca281 into main May 9, 2026
3 checks passed
@JohnMcLear JohnMcLear deleted the ci/fix-pnpm-action-setup-conflict branch May 9, 2026 19:16
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