Skip to content

Ci/release notes from changelog - #27

Merged
steckes merged 2 commits into
mainfrom
ci/release-notes-from-changelog
Sep 7, 2026
Merged

steckes merged 2 commits into
mainfrom
ci/release-notes-from-changelog

Conversation

@steckes

@steckes steckes commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

No description provided.

steckes and others added 2 commits September 7, 2026 23:00
`napi prepublish` creates the release with neither a name nor a body, so every release it
made was untitled and empty. Extract the section for the version being released and set it
on the release after publishing.

The tag pattern now requires the `v` prefix. napi derives the release tag as `v${version}`
regardless of what was pushed, so a bare `0.24.0` tag made it create a second `v0.24.0` tag
and release pointing at whatever the default branch happened to be.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0.23.1 and every package before it were published by trusted publishing: npm records the
publisher as `GitHub Actions <npm-oidc-no-reply@github.com>`, and the old workflow carried
no token, only `id-token: write` and an npm new enough to use it. The rewrite replaced that
with an `_authToken` line, so the release ran unauthenticated and npm answered the `PUT`
with a 404 for a package that plainly exists.

Drop the token, install an npm that supports trusted publishing, and let the OIDC identity
authenticate. Provenance is no longer set explicitly because trusted publishing attaches it
anyway, which is how 0.23.1 got its attestation.

Also skip the root publish when that version is already on the registry, so a release that
failed partway can be re-run. `napi prepublish` already does this for the platform packages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@steckes
steckes merged commit 7d0b4e2 into main Sep 7, 2026
7 checks passed
@steckes
steckes deleted the ci/release-notes-from-changelog branch September 7, 2026 21:53
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