You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generated workflow hard-codes pnpm 9 and ignores packageManager #398
The generated pnpm workflow hard-codes version: 9 for pnpm/action-setup@v4 (packages/cli/src/commands/setup.ts:38 on main), whatever the repo declares.
Reproduction
Run charter bootstrap --ci github --preset fullstack --mode lean --yes --skip-install in a repo whose package.json has "packageManager": "[email protected]". The generated .github/workflows/charter-governance.yml contains:
- uses: pnpm/action-setup@v4with:
version: 9
Expected
Omit version when packageManager is set, so the action reads it, or derive the version from the repo.
Why it matters
The workflow would run a different major version of pnpm than the project pins. As I understand it, pnpm/action-setup errors when version conflicts with packageManager, which would fail the governance job on its first run.
Scope
The generated YAML is measured on 2.1.0 and the same line is on main. I did not run the workflow on GitHub, so the action's failure is expected and not observed.
Activity
docs(changelog): 3.0.0 release notes (#456)