Skip to content

ci: enable npm trusted publishing#7470

Merged
DennisOSRM merged 4 commits intomasterfrom
feat/npm-trusted-publishing
Apr 12, 2026
Merged

ci: enable npm trusted publishing#7470
DennisOSRM merged 4 commits intomasterfrom
feat/npm-trusted-publishing

Conversation

@DennisOSRM
Copy link
Copy Markdown
Collaborator

Enable OIDC-based trusted publishing to npm by adding id-token:write permission to the release workflow.

This allows secure token exchange without requiring long-lived NPM_TOKEN secrets in the repository.

Add id-token: write permission to the release workflow to enable OIDC-based
trusted publishing to npm. This allows secure token exchange without requiring
long-lived NPM_TOKEN secrets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 12, 2026 10:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enable OIDC-based permissions in the monthly release workflow to support npm Trusted Publishing and reduce reliance on long-lived npm tokens.

Changes:

  • Add id-token: write permission to the release job.
  • Reorder the npm publish step fields (no functional change by itself).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release-monthly.yml
Comment thread .github/workflows/release-monthly.yml Outdated
Remove the NPM_TOKEN secret dependency and rely solely on OIDC token exchange
for npm authentication. This enables secure trusted publishing without
long-lived credentials stored as repository secrets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release-monthly.yml Outdated
DennisOSRM and others added 2 commits April 12, 2026 13:11
The release workflow doesn't interact with GitHub Packages, only publishes
to npm registry. Remove the unnecessary permission to reduce blast radius.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DennisOSRM DennisOSRM merged commit 82b8335 into master Apr 12, 2026
23 checks passed
@DennisOSRM DennisOSRM deleted the feat/npm-trusted-publishing branch April 12, 2026 12:06
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