Skip to content

ci: fix provenance publish by removing broken npm upgrade step#82

Merged
nujovich merged 1 commit into
mainfrom
fix/publish-provenance
Jul 10, 2026
Merged

ci: fix provenance publish by removing broken npm upgrade step#82
nujovich merged 1 commit into
mainfrom
fix/publish-provenance

Conversation

@nujovich

Copy link
Copy Markdown
Owner

Problem

The v0.2.1 tag triggered publish.yml, but the npm publish --provenance step failed:

npm error code MODULE_NOT_FOUND
npm error Cannot find module 'sigstore'
  .../node_modules/npm/node_modules/libnpmpublish/lib/provenance.js

The npm install -g npm@latest step leaves the global npm in a broken state missing sigstore (the module that generates provenance attestations) — a known issue with reinstalling npm over the Node-bundled one.

Fix

Remove the Update npm step. Node 24's bundled npm already supports OIDC trusted publishing and ships sigstore intact, so the manual upgrade was both unnecessary and the cause of the failure.

Also tidies CHANGELOG.md: release-it had inserted the 0.2.1 heading above the intro line and left the section empty — restored the intro and gave 0.2.1 an honest "maintenance release, no user-facing changes" note.

After merge

Re-point the v0.2.1 tag to this fix commit and re-push so the corrected workflow publishes 0.2.1 to npm with provenance.

@nujovich nujovich merged commit cb81c93 into main Jul 10, 2026
2 checks 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