Skip to content

chore: release 0.3.2 and fix npm publishing - #95

Merged
Alex-Wengg merged 2 commits into
mainfrom
ci/npm-trusted-publishing
Oct 29, 2026
Merged

Alex-Wengg merged 2 commits into
mainfrom
ci/npm-trusted-publishing

Conversation

@Alex-Wengg

@Alex-Wengg Alex-Wengg commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Fixes #92.

Why npm publishing never worked

All seven npm-publish runs (v0.2.1 through v0.3.1) built and smoke-tested the package, then failed at npm publish with E404. That's what npm returns for an unauthenticated publish to a scope. The NPM_TOKEN secret was never set; the repo has no secrets at all.

npm has also changed since #13. Classic tokens were revoked in December 2025, and 2FA-bypass granular tokens are being restricted, losing direct publish in January 2027. So this moves to trusted publishing, where the workflow authenticates with GitHub's OIDC token and no token or secret exists.

Change

Release steps

npm only accepts a trusted publisher for a package that already exists, so 0.3.2 is published once by hand, built from this branch. After that the trusted publisher is added (npm trust github … --file npm-publish.yml), and the v0.3.2 tag run skips the publish because the version already exists. Later tags publish through trusted publishing.

🤖 Generated with Claude Code

Every npm-publish run failed at npm publish with E404, npm's answer to
an unauthenticated scoped publish: the NPM_TOKEN secret was never set.
npm has since revoked classic tokens and is restricting 2FA-bypass
granular tokens, so authenticate with trusted publishing instead: give
the job id-token: write and npm 11.5.1+ (Node 22 ships npm 10), and
drop the token.

Skip the publish when the version is already on npm, so a re-run, or a
release published by hand (the first one has to be: npm only accepts a
trusted publisher for a package that already exists), passes.
@Alex-Wengg
Alex-Wengg force-pushed the ci/npm-trusted-publishing branch from 34065e9 to d9d599b Compare October 27, 2026 22:22
@Alex-Wengg
Alex-Wengg merged commit c96e9b5 into main Oct 29, 2026
7 checks passed
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.

Publish npm package @fluidinference/text-processing-rs

1 participant