Repository navigation
fix(setup): respect pnpm packageManager pins in generated workflows - #405
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #398.
When a pnpm repository declares
packageManager,setup --ci githubandbootstrap --ci githubnow letpnpm/action-setup@v4read that pin instead of forcing pnpm 9. Exact pins, prereleases, and Corepack integrity suffixes are retained in package.json; repositories without a valid pnpm pin keep the existing pnpm 9 fallback, and npm workflows are unchanged.Registers the generated pinned-pnpm workflow in the known-template allowlist so safe refreshes still work. Existing hand-edited/unsafe-workflow protection remains in place. This follows the action's documented version omission behavior.
Validation on Windows, Node 24.19.0, pnpm 9.15.9:
pnpm install --frozen-lockfile— pass.pnpm run buildandpnpm run typecheck— pass.pnpm exec vitest run packages/cli/src/__tests__/setup.test.ts packages/cli/src/__tests__/workflow-mcp-backup.test.ts— 98 passed.pnpm exec vitest run packages/cli/src/__tests__/bootstrap.test.ts -t '#398'— 3 regression tests passed.path.isAbsolute('C:\\...')).pnpm run test— 1,940 passed, four known Windows baseline failures: bootstrap's POSIX-only path fixture premise, context-refresh and serve-context path separators, and Ctrl-D fake-TTY behavior. No additional failures; all 15 added regressions pass.git diff --checkand LF line-ending check — pass; commit-time TypeScript and ADF evidence gates — pass.Main CI currently fails the dependency audit before build/test (tracked by the release-readiness work for #397). This PR does not weaken that gate or change dependency pins. No release, deployment, or merge performed.