Skip to content

ci: restore npm provenance for published packages - #2236

Merged
trivikr merged 2 commits into
mainfrom
changesets-npm-provenance
Aug 15, 2026
Merged

ci: restore npm provenance for published packages#2236
trivikr merged 2 commits into
mainfrom
changesets-npm-provenance

Conversation

@trivikr

@trivikr trivikr commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Refs: #2235

Description of changes:

Provenance attestations stopped being generated with the migration to changesets v3. Changesets v2 always shelled out to npm publish, which attaches provenance automatically under trusted publishing. v3 selects the publish tool from the repo's package manager, so this repo now publishes via yarn npm publish, and Yarn skips provenance silently unless it is explicitly requested. The first affected release was @smithy/undici-http-handler@3.2.0.

Opt in on the release step. Both variables are set so the attestationis generated whichever tool changesets selects: Yarn reads YARN_NPM_PUBLISH_PROVENANCE, and npm/pnpm read NPM_CONFIG_PROVENANCE.

Note that Yarn's own --provenance help text names YARN_NPM_CONFIG_PROVENANCE, which is wrong: it resolves to an unknown npmConfigProvenance setting and aborts the command.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr
trivikr requested a review from a team as a code owner August 15, 2026 17:03
@trivikr
trivikr merged commit 99c3f91 into main Aug 15, 2026
19 checks passed
@trivikr
trivikr deleted the changesets-npm-provenance branch August 15, 2026 17:12
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.

2 participants