fix(ci): declare packageManager for pnpm/action-setup #6
Reference in New Issue
Block a user
Delete Branch "fix/ci/pin-pnpm-version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
"packageManager": "pnpm@10.33.2"to rootpackage.json.Motivation
The smoke-test CI run got past
actions/checkout@v4(runner image fix from PR #4 working), but failed onpnpm/action-setup@v3with:The action looks at
package.json'spackageManagerfield by default. Setting it there (rather than hardcodingversion:in every workflow YAML) is the single-source-of-truth approach: corepack reads the same field locally, so dev environments and CI converge automatically.Implementation notes
pnpm@10.33.2(the exact version the workspace was bootstrapped with). Future bumps go through a dedicatedchore(deps): bump pnpm to X.Y.ZPR that updates this field — keeps CI and local dev in lockstep.corepackwill pick up this declaration on the nextcorepack enableor pnpm invocation. Devs already on 10.33.2 see no change; devs on a different version are nudged onto the canonical one..gitea/workflows/ci.yml,security-scheduled.yml) untouched —pnpm/action-setup@v3readspackageManagerdirectly.Verification
pnpm/action-setup@v3(= the step that fails on smoke-test PR currently). Confirmed by re-pushing to the smoke-test branch (or any other PR) after this one merges.pnpm installlocally still works with the declaration (no change for someone already on 10.33.2).Related