Skip to content

Generated workflow hard-codes pnpm 9 and ignores packageManager #398

Closed

Description

@stackbilt-admin

Problem

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@v4
  with:
    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

  1. added
    bug
    priority:p1
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions