feature: adding trusted publishing#185
Conversation
we want to stop using tokens to publish to npm so adding trusted publishing
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds npm “trusted publishing” support to the release workflow to move away from long-lived npm tokens when publishing packages.
Changes:
- Moves workflow permissions to the release job and adds
id-token: writefor OIDC. - Updates the workflow to upgrade npm CLI before publishing.
- Removes use of
NPM_TOKENfrom the Changesets publish step.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - uses: actions/setup-node@v6 | ||
| with: | ||
| cache: pnpm | ||
| node-version: lts/* |
|
Thanks. Similar to the strapi/client discussion this seems like what we should do next, wdyt? Workflow tweaks
Suggested test plan Unlike client, we can't
|
Pin npm@11.17.0 instead of @latest for reproducible release builds.
innerdvations
left a comment
There was a problem hiding this comment.
I fixed one of the issues Jamie pointed out, LGTM now but I will defer final approval to him
|
According to the docs, we should have For the npm version, I have no objections for pinning to One last question, is there a reason that we sometimes use Changesets and other times we do not? As for the process, I suggest we go through the different steps together to make sure we're aligned on each step.
|
|



What does it do?
Adding trusted publishing
Why is it needed?
We want to stop using tokens to publish to npm