Skip to content

feat(release-it-config): support npm trusted publishing - #336

Merged
FRSgit merged 2 commits into
mainfrom
chore/npm-trusted-publishing
Oct 1, 2026
Merged

FRSgit merged 2 commits into
mainfrom
chore/npm-trusted-publishing

Conversation

@FRSgit

@FRSgit FRSgit commented Oct 1, 2026

Copy link
Copy Markdown
Member

Migrates the toolkit packages from the NPM_TOKEN secret to npm trusted publishing (OIDC), same as is-animated already does.

  • @frsource/release-it-config: npm.skipChecks: true — release-it's npm whoami / collaborator pre-checks can't succeed without a token; publishing still fails loudly on auth problems.
  • ci.yml: id-token: write on the release job, remove the "Authenticate with Registry" step and NPM_TOKEN env.

Before merging, configure a trusted publisher on npmjs.com for each package (@frsource/eslint-config, @frsource/globals-vitest, @frsource/prettier-config, @frsource/release-it-config, @frsource/semantic-release-config): GitHub Actions, org FRSOURCE, repo toolkit, workflow ci.yml, no environment.

🤖 Generated with Claude Code

FRSgit and others added 2 commits October 1, 2026 17:40
Publish the toolkit packages with npm trusted publishing (OIDC) instead
of the long-lived NPM_TOKEN secret:

- release-it-config: set `npm.skipChecks` so release-it no longer runs
  `npm whoami` / collaborator checks, which cannot succeed without a token
- ci.yml: grant `id-token: write` to the release job, drop the
  "Authenticate with Registry" step and the NPM_TOKEN env

Requires a trusted publisher (FRSOURCE/toolkit, ci.yml) configured on
npmjs.com for each package before merging.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@FRSgit
FRSgit merged commit 4fd7826 into main Oct 1, 2026
2 checks passed
@FRSgit
FRSgit deleted the chore/npm-trusted-publishing branch October 1, 2026 15:45
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