Skip to content

fix: align pnpm/Node setup in CI to fix npm publish EUNKNOWNCONFIG#62

Merged
Bre77 merged 1 commit into
mainfrom
fm/tst-publish-pnpm-align
Jul 22, 2026
Merged

fix: align pnpm/Node setup in CI to fix npm publish EUNKNOWNCONFIG#62
Bre77 merged 1 commit into
mainfrom
fm/tst-publish-pnpm-align

Conversation

@Bre77

@Bre77 Bre77 commented Jul 22, 2026

Copy link
Copy Markdown
Member

Intent

  • Publish is still broken on main after PR fix: remove invalid --provenance flag from ci:publish #60 and fix: bump @changesets/cli to fix npm publish EUNKNOWNCONFIG #61: npm error EUNKNOWNCONFIG Unknown cli flag: --git-checks. Neither the removed --provenance flag nor the @changesets/cli bump was the actual root cause.
    • Root cause: pnpm/action-setup@v2 hardcodes version: 9, while root packageManager declares [email protected]. That mismatch makes changeset publish fall through to a plain npm publish instead of the pnpm path, and npm rejects the --git-checks flag changesets passes for pnpm.
    • Confirmed by diffing against tesla-protocol, which publishes cleanly with the same @changesets/[email protected] and no .npmrc: it uses pnpm/action-setup@v4 with no hardcoded version (reads packageManager), Node 24, packageManager: [email protected].
  • Fix: mirror tesla-protocol's working setup in publish.yml and ci.yml.
  • Verified pnpm install --frozen-lockfile, pnpm -r run build, pnpm lint, and pnpm -r --no-bail tsc all pass locally with pnpm 10.30.3.
  • A maintainer needs to re-run the Publish workflow on main after this merges. It unblocks a growing backlog: @teslemetry/api local 0.9.0 vs npm 0.7.0, iobroker.teslemetry's first publish, node-red-contrib-teslemetry 0.3.0, homebridge-teslemetry, and n8n-nodes-teslemetry.

Root cause of the still-failing publish: pnpm/action-setup@v2 hardcoded
pnpm 9 while packageManager declared [email protected]. That mismatch made
changeset publish fall through to a plain npm publish, which rejects
the --git-checks flag changesets passes for the pnpm path.

Mirrors the working setup in the sibling tesla-protocol repo:
pnpm/action-setup@v4 (reads packageManager, no hardcoded version),
Node 24, packageManager bumped to [email protected].
@Bre77
Bre77 merged commit af440ca into main Jul 22, 2026
1 check passed
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