Skip to content

[_]: ci/publish-npm-with-trusted-publishing - #770

Merged
sg-gs merged 1 commit into
mainfrom
ci/npm-trusted-publishing
Dec 1, 2026
Merged

sg-gs merged 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@sg-gs

@sg-gs sg-gs commented Dec 1, 2026

Copy link
Copy Markdown
Member

What

  • Publish to npm with trusted publishing (OIDC) from the npm-publish environment, instead of a long-lived NPM_TOKEN.
  • Drop the unused packages: write permission.

Why

  • The NPM_TOKEN secret can be read by any workflow run on any branch. With trusted publishing there is no token to leak, and publishing requires an approved run from main or a v* tag.

@sg-gs
sg-gs requested a review from larryrider as a code owner December 1, 2026 14:54
@sg-gs sg-gs self-assigned this Dec 1, 2026
@sg-gs sg-gs added the enhancement New feature or request label Dec 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@sg-gs
sg-gs merged commit 9de53a0 into main Dec 1, 2026
9 checks passed
@sg-gs
sg-gs deleted the ci/npm-trusted-publishing branch December 1, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants