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 requested a review from miottid October 23, 2025 13:32
@rfgamaral rfgamaral self-assigned this Oct 23, 2025
@rfgamaral rfgamaral merged commit 93fadad into main Oct 23, 2025
2 checks passed
@rfgamaral rfgamaral deleted the ricardo/secure-release-workflow branch October 23, 2025 13:33
@rfgamaral
Copy link
Member Author

Working as expected (workflow run):
image

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