Skip to content

Migrate to npm trusted publishing (OIDC) and update workflows #16434

@ndoschek

Description

@ndoschek

Feature Description:

As of yesterday, npm changed their auth token policy. Instead of rotating the tokens every 90 days (which is very annoying, since we always need to create a helpdesk issue for that), shouldn't we just enable this repo as an OIDC token provider?

Originally posted by @msujew in #16433 (comment)

Instead of continuing with manually rotated tokens, we should migrate to npm's trusted publishing using GitHub Actions and OpenID Connect (OIDC).

  • Workflows like publish-next, publish-gh-pages, and publish-release currently use the long-lived NODE_AUTH_TOKEN secret.

Expected

  • Workflows should authenticate to npm via OIDC, avoiding the need for stored secrets.
  • Publishing workflows should continue to function without modification to the manual token rotation schedule.
    • Affected Workflows: publish-next, publish-api-doc-gh-pages, publish-release
  • See also:

Metadata

Metadata

Assignees

Labels

ciissues related to CI / testssecurityissues related to security

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions