Skip to content

Conversation

@jgoz
Copy link
Collaborator

@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. @awesome-code-style/eslint-config
  2. @awesome-code-style/prettier-config
  3. @awesome-code-style/stylelint-config

For each package:

  • Set up GitHub Actions as a trusted publisher
  • Configure the repository, workflow file, and job name

- 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
@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2025

🦋 Changeset detected

Latest commit: 1b8db7c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@awesome-code-style/eslint-config Patch
@awesome-code-style/prettier-config Patch
@awesome-code-style/stylelint-config Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jgoz jgoz merged commit c2ca1e7 into master Oct 21, 2025
1 check passed
@jgoz jgoz deleted the add-npm-trusted-publishing branch October 21, 2025 21:03
@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