Repository navigation
CI: Publish 2.x releases with provenance - #757
Merged
Merged
Conversation
Releases 2.6.0 and 2.6.1 were published without provenance attestations, while 2.5.5 and the 3.x releases have them. Consumers using pnpm's `trustPolicy: no-downgrade` see that as a trust downgrade and fail to install 2.6.1, which still reaches many projects through libraries that depend on tailwind-merge 2.x (#668, #720). Publishing from this branch's CI failed at the time after npm's authentication changes, so 2.6.1 was released from a local machine, which can't produce provenance. The publish steps installed `npm@latest`, which is npm 12 by now and requires Node.js 22.22.2 or newer, while this workflow runs on 22.20.0. Pins npm to major version 11 instead, which supports trusted publishing from 11.5.1 on and runs on this Node.js version. Passes `--provenance` explicitly to `npm publish` in addition to `publishConfig.provenance`, so a release from this branch can't silently lose its attestation again.
|
This was addressed in release v2.6.2. |
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
2.6.0 and 2.6.1 were published without provenance while 2.5.5 and 3.x have it, so pnpm's
trustPolicy: no-downgradeflags 2.6.1 as a trust downgrade and fails installs. CI publishing on this branch failed after npm's authentication changes, so 2.6.1 was published locally.Pins npm to v11 because npm@latest (npm 12) requires Node.js 22.22.2 or newer and this workflow runs 22.20.0. npm 11 supports trusted publishing from 11.5.1.
Passes
--provenanceexplicitly when publishing. Existing 2.6.0 and 2.6.1 releases cannot be changed; after merging, release 2.6.2 from this branch with no other changes so that^2installs resolve to an attested version.The dev job is updated for consistency, although it does not run on this branch.
Workflow YAML parses and passes Prettier. The publish path needs a real release to verify.
Closes #668. Closes #720.