Skip to content

Conversation

@jgoz
Copy link
Contributor

@jgoz jgoz commented Oct 21, 2025

This PR adds support for npm trusted publishing via OIDC, which allows automated publishing without requiring OTP tokens.

Changes

  • Added id-token: write, contents: write, and pull-requests: write permissions to the release job
  • Added npm update step to ensure latest npm version for provenance support
  • Added --provenance flag in the npm publish command
  • Added changeset for all packages
  • This enables automated publishing via OIDC authentication

Benefits

  • No more manual OTP entry required for publishing
  • Enhanced security through OIDC-based authentication
  • Automatic provenance generation for published packages

References

Next Steps

After merging this PR, you'll need to configure the trusted publisher on npm for each package:

  1. immutable-class
  2. eslint-plugin-immutable-class
  3. immutable-class-tester

For each package:

  • Set up GitHub Actions as a trusted publisher
  • Configure the repository, workflow file (build.yml), and job name (Release)

- Add id-token, contents, and pull-requests write permissions to release job
- Add npm update step to ensure latest npm version for provenance support
- Add --provenance flag for npm publish
- Add changeset for all packages
- Enables automated publishing via OIDC without requiring OTP
@jgoz jgoz merged commit 159eb5a into master Oct 21, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Oct 21, 2025
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