Skip to content

feat(npm): switch CI auth from NPM_TOKEN to OIDC trusted publishing#220

Merged
tkrugg merged 1 commit into
mainfrom
feat/npm-oidc
May 19, 2026
Merged

feat(npm): switch CI auth from NPM_TOKEN to OIDC trusted publishing#220
tkrugg merged 1 commit into
mainfrom
feat/npm-oidc

Conversation

@tkrugg
Copy link
Copy Markdown
Collaborator

@tkrugg tkrugg commented May 19, 2026

Summary

Now that all 7 @algolia/cli* packages have trusted publishers configured on npmjs.org pointing at this repo's releases.yml, switch CI back to OIDC.
This should fix the current failing build because of OTP

Follow-up cleanup

The NPM_TOKEN repo secret can be deleted once this lands.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release workflow to publish the @algolia/cli* npm packages via npm’s OIDC trusted publishing instead of using the NPM_TOKEN secret, aligning CI publishing with the configured trusted publisher on npmjs.org.

Changes:

  • Update the workflow permissions comment to reflect that id-token: write is used for trusted publishing as well as provenance.
  • Remove NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} from the npm publish step so publishing relies on OIDC.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tkrugg tkrugg merged commit 7e41a58 into main May 19, 2026
7 checks passed
@tkrugg tkrugg deleted the feat/npm-oidc branch May 19, 2026 19: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