Skip to content

CI: Publish 2.x releases with provenance - #757

Merged
dcastil merged 1 commit into
tailwind-merge@2from
ci/v2-trusted-publishing
Nov 18, 2026
Merged

dcastil merged 1 commit into
tailwind-merge@2from
ci/v2-trusted-publishing

Conversation

@dcastil

@dcastil dcastil commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

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-downgrade flags 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 --provenance explicitly 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 ^2 installs 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.

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.
@github-actions github-actions Bot added the context-v3 Related to tailwind-merge v3 label Nov 18, 2026
@dcastil
dcastil merged commit 4feff65 into tailwind-merge@2 Nov 18, 2026
7 of 10 checks passed
@dcastil
dcastil deleted the ci/v2-trusted-publishing branch November 18, 2026 20:22
@github-actions

Copy link
Copy Markdown

This was addressed in release v2.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working context-v3 Related to tailwind-merge v3 tailwind-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant