Skip to content

fix(release-kit): adopt npm trusted publishing and pin releases to kits - #2993

Merged
cabljac merged 1 commit into
kitsfrom
feat/release-kit-trusted-publishing
Aug 27, 2026
Merged

fix(release-kit): adopt npm trusted publishing and pin releases to kits#2993
cabljac merged 1 commit into
kitsfrom
feat/release-kit-trusted-publishing

Conversation

@cabljac

@cabljac cabljac commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Yesterday's release attempt failed with ENEEDAUTH: this copy of the workflow still authenticates against wombat-dressing-room via secrets.NPM_TOKEN, which no longer exists in the repo. The next branch's copy had already moved to npm trusted publishing (id-token: write, npm publish --provenance, no token, checkout pinned to kits) and every successful Aug 20-26 release ran through it; #2992 then overwrote it with this copy, losing the working auth path.

This ports that design onto the fixed versioning logic: OIDC trusted publishing, and checkout/push/release-target hardcoded to kits so the file behaves identically from any dispatch ref (safe to re-sync to next afterwards). The non-branch dispatch guard is dropped since the push no longer derives from the dispatched ref.

Verified via dry-run dispatch (link in comments). Caveats: npm dist-tag add on the stable path may still need auth beyond what trusted publishing grants to publish itself (pre-existing, prerelease path unaffected); the real publish path is exercised only by the next actual release.

Publishing failed with ENEEDAUTH: the workflow authenticated against
wombat-dressing-room with secrets.NPM_TOKEN, which no longer exists.
The copy of this workflow on next had already moved to npm trusted
publishing (id-token: write, npm publish --provenance, no token) and
pinned checkout to the kits branch; the successful Aug 20-26 releases
all ran that way. #2992 then overwrote that copy with this one, losing
the working auth.

Adopt the same design here: OIDC trusted publishing, and checkout,
push, and release target hardcoded to kits so the file behaves
identically from whichever branch it is dispatched. The non-branch-ref
dispatch guard is dropped since the push no longer derives from the
dispatched ref.

Not verified live: npm dist-tag add on the stable path may still need
auth that trusted publishing only grants to publish itself.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@cabljac
cabljac marked this pull request as ready for review August 27, 2026 17:04
@cabljac
cabljac merged commit 28d854d into kits Aug 27, 2026
11 checks passed
cabljac added a commit that referenced this pull request Aug 27, 2026
Syncs release-kit.yaml byte-for-byte with the #2993 version on kits
(trusted publishing, checkout/push/release pinned to kits). The #2992
copy on next authenticated via the removed NPM_TOKEN and checked out the
dispatched ref, so dispatching from next failed at the test job. The
#2993 file is dispatch-ref-agnostic, making the two copies safely
identical. No behavior change beyond fixing dispatch-from-next.
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