Skip to content

Conversation

@rfgamaral
Copy link
Member

Overview

This PR updates the repository’s GitHub Actions workflow to use npm’s Trusted Publishing feature for package releases. Using Trusted Publishing eliminates the need to store long-lived npm tokens in GitHub secrets, reducing security risks and simplifying credential management. This also standardizes the publishing process across repositories.

Important

The npm organization and repository must be linked and authorized for Trusted Publishing before merging.

What’s changing:

  • Replaces manual NPM_TOKEN authentication with GitHub’s OpenID Connect (OIDC)–based authentication.
  • Updates the release workflow configuration to align with npm’s Trusted Publishers documentation
  • Ensures that package publishing permissions are managed directly through GitHub and npm, improving security and maintainability.

@rfgamaral rfgamaral self-assigned this Oct 24, 2025
@rfgamaral rfgamaral added the 👀 Show PR Used for PRs that need a review, but can be merged when CI is green. label Oct 24, 2025
@rfgamaral rfgamaral force-pushed the ricardo/secure-release-workflow-v2 branch from 1a61fdd to 78576d4 Compare October 24, 2025 16:36
@rfgamaral rfgamaral marked this pull request as ready for review October 24, 2025 16:40
@rfgamaral rfgamaral requested review from a team and pedroalves0 and removed request for a team October 24, 2025 16:41
@rfgamaral rfgamaral merged commit 0c33d50 into main Oct 24, 2025
6 checks passed
@rfgamaral rfgamaral deleted the ricardo/secure-release-workflow-v2 branch October 24, 2025 16:41
Copy link
Member

@pedroalves0 pedroalves0 left a comment

Choose a reason for hiding this comment

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

✅️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 Show PR Used for PRs that need a review, but can be merged when CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants