Skip to content

Conversation

@tanjeemh
Copy link
Contributor

@tanjeemh tanjeemh commented Nov 18, 2025

What problem are we solving?
As npm has let us know that they are revoking all classic npm-tokens this month, we are migrating to using OIDC Trusted Publishing instead.

Why are we solving it this way?

  • id-token: write permissions is required for OIDC authentication
  • set a Github Environment called publish-apits for secure deployments to the master branch
  • ensure npm is at least up to v11.5.1 for OIDC Trusted Publishing compatibility
  • deleted patches/@semantic-release+npm+12.0.1.patch as the patch-package file is no longer required since @semantic-release/npm@^v13.0.0 has fixed the whoami bug

Ticket: DX-2319

@tanjeemh tanjeemh requested a review from a team as a code owner November 18, 2025 14:33
@tanjeemh tanjeemh enabled auto-merge November 18, 2025 16:06
package.json Outdated
"devDependencies": {
"@semantic-release-extras/github-comment-specific": "1.0.7",
"@semantic-release/npm": "12.0.1",
"@semantic-release-extras/github-comment-specific": "2.0.7",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this have to be updated? Fairly sure last time this was tried there was an ESM-related issue. How have you tested this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I was just updating them for the sake of using the latest stable version. I can get rid of them, I don't think this should affect trusted publishing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I do want to update semantic-release/npm though. Updating to the latest version includes npm's bug fixes that were troubling us last month

package.json Outdated
"@semantic-release/npm": "13.1.2",
"@types/node": "22.5.0",
"multi-semantic-release": "3.0.2",
"multi-semantic-release": "3.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this required to implement trusted publishing, or was it updated for a different reason? I'd like to reduce changes to minimum to reduce unnecessary risk.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

^ same as above

Copy link
Contributor

@ericcrosson-bitgo ericcrosson-bitgo left a comment

Choose a reason for hiding this comment

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

Uses trusted publishing -- thanks @tanjeemh!

@tanjeemh tanjeemh merged commit c03229f into master Nov 19, 2025
6 checks passed
@tanjeemh tanjeemh deleted the DX-2319 branch November 19, 2025 17:43
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