Skip to content

fix: remove invalid --provenance flag from ci:publish#60

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

fix: remove invalid --provenance flag from ci:publish#60
Bre77 merged 1 commit into
mainfrom
fm/tst-publish-provenance-fix

Conversation

@Bre77

@Bre77 Bre77 commented Jul 22, 2026

Copy link
Copy Markdown
Member

Intent

  • ci:publish runs changeset publish --provenance, but --provenance isn't a valid changesets/npm publish flag - changesets forwards unknown flags straight to npm publish, which rejects it (EUNKNOWNCONFIG: Unknown cli flag). Every real publish since api 0.7.0 has crashed as a result.
    • Fix: drop --provenance from ci:publish; enable provenance via NPM_CONFIG_PROVENANCE: true in the release step's env instead (npm reads it from config/env, not the CLI).
    • Local release script's changeset publish --public doesn't use --provenance, so it's untouched.

Once merged, a maintainer needs to re-run the Publish workflow on main to ship the backlog of already-versioned-but-unpublished packages (@teslemetry/api 0.7.1, iobroker.teslemetry 0.1.11, node-red-contrib-teslemetry 0.3.0, @teslemetry/homebridge-teslemetry 0.1.11).

changeset publish forwards unrecognized flags straight to npm publish,
and --provenance isn't a valid npm publish flag (npm expects it via
config, not CLI) - this crashed every real publish with
EUNKNOWNCONFIG. Provenance is now enabled via NPM_CONFIG_PROVENANCE in
the workflow step's env instead.
@Bre77
Bre77 merged commit 13f0518 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