Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Enable OIDC publishing to make it easier and more secure to publish npm packages from CI.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 5, 2025 03:25
Copy link

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

This PR enables npm trusted publishing using OIDC (OpenID Connect) to improve security and eliminate the need for manual token management when publishing npm packages from CI workflows.

  • Removes the provenance configuration from package.json and the NPM_TOKEN secret dependency
  • Adds environment-based protection and updates npm to the latest version to support OIDC features
  • Reorganizes workflow permissions and adds setup steps for trusted publishing

Reviewed Changes

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

File Description
package.json Removes provenance setting to rely on OIDC-based provenance generation
.github/workflows/release.yml Configures OIDC trusted publishing with environment protection and npm updates

@chenjiahan chenjiahan merged commit c6585c7 into main Aug 5, 2025
7 checks passed
@chenjiahan chenjiahan deleted the npm_pub_0805 branch August 5, 2025 03:44
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