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
  • Replaced --otp=1 with --provenance flag in the npm publish command
  • Added changeset for this change
  • 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:

  1. Go to https://www.npmjs.com/package/druid-query-toolkit/access
  2. Set up GitHub Actions as a trusted publisher
  3. 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
- Replace --otp=1 with --provenance flag for npm publish
- Add changeset for this change
- Enables automated publishing via OIDC without requiring OTP
@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2025

🦋 Changeset detected

Latest commit: 80e49cc

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

This PR includes changesets to release 1 package
Name Type
druid-query-toolkit 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 requested a review from vogievetsky October 21, 2025 21:04
@vogievetsky vogievetsky merged commit 13d4a6d into master Oct 22, 2025
1 check passed
@vogievetsky vogievetsky deleted the add-npm-trusted-publishing branch October 22, 2025 20:07
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.

3 participants