Skip to content

ORCA-904: pin pnpm with a packageManager field - #65

Closed
presmihaylov wants to merge 1 commit into
mainfrom
orca-904-pin-pnpm-packagemanager
Closed

ORCA-904: pin pnpm with a packageManager field#65
presmihaylov wants to merge 1 commit into
mainfrom
orca-904-pin-pnpm-packagemanager

Conversation

@presmihaylov

@presmihaylov presmihaylov commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Closes ORCA-904.

Why. The repo pins node but never pnpm. Both workflows install a floating version: 10, so CI takes the newest 10.x while a contributor uses whatever pnpm they have. --frozen-lockfile fails on pnpm 11+ against lockfileVersion: 9.0, and it reads as a broken lockfile, not a wrong toolchain.

How.

  • The field replaces the version: 10 input rather than sitting beside it. pnpm/action-setup throws Multiple versions of pnpm specified when the two disagree, so keeping both leaves a release workflow that fails on drift.
  • Verified on node 24: pnpm --version reports 10.34.5 in the repo with a global 11.5.1, and the gate passes.
  • Deliberate trade: an exact pin stops picking up 10.x patches, and there is no renovate or dependabot. Tracked on the ticket.

What. Three files, no dependency or lockfile change. Moving to pnpm 11 or 12 needs a lockfile migration, out of scope.

The repo declares engines.node but never which pnpm, so CI resolved a
floating 10.x while contributors used whatever they had globally. pnpm 12
is current and --frozen-lockfile fails on 11+ against lockfileVersion 9.

The field replaces the action-setup version input rather than sitting
beside it: action-setup documents version as optional when packageManager
exists, but not what happens when the two disagree.
@presmihaylov
presmihaylov force-pushed the orca-904-pin-pnpm-packagemanager branch from f41ce36 to 4e50cf7 Compare September 7, 2026 06:55
@presmihaylov

Copy link
Copy Markdown
Contributor Author

Closing on Pres's call: not needed, CI works with the floating pnpm 10 and nothing depends on the pin.

@presmihaylov
presmihaylov deleted the orca-904-pin-pnpm-packagemanager branch September 7, 2026 07:07
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