Skip to content

ci: use npm OIDC trusted publishing for releases#390

Merged
hkonsti merged 1 commit into
mainfrom
hkonsti/canary-release-steps
Jul 9, 2026
Merged

ci: use npm OIDC trusted publishing for releases#390
hkonsti merged 1 commit into
mainfrom
hkonsti/canary-release-steps

Conversation

@hkonsti

@hkonsti hkonsti commented Jul 9, 2026

Copy link
Copy Markdown
Member

What

Switches the release workflow from a long-lived npm token to npm's OIDC trusted publishing.

  • Adds id-token: write permission (the OIDC token npm verifies)
  • Removes NODE_AUTH_TOKEN / NPM_TOKEN env vars
  • Upgrades npm to latest in CI — trusted publishing needs npm ≥ 11.5.1, but Node 22 ships npm 10.x

Lerna is already ^9.0.7, and v9+ performs the OIDC exchange automatically, so the lerna publish commands are unchanged. This also emits provenance attestations for free.

Required manual step before merging is useful

Trusted publishers are configured per package on npmjs.com. For each publishable package (@revideo/core, @revideo/2d, @revideo/cli, @revideo/create, @revideo/ffmpeg, @revideo/player, @revideo/player-react, @revideo/renderer, @revideo/telemetry, @revideo/ui, @revideo/vite-plugin):

npmjs.com → package → Settings → Trusted Publisher → GitHub Actions:

  • Repository: midrender/revideo
  • Workflow filename: publish.yml
  • Environment: (blank)

The NPM_AUTH_TOKEN secret can be deleted after the first successful trusted-publish run.

Notes

  • Renaming publish.yml will break publishing until every package's trusted-publisher config is updated.
  • Local publishing still requires a token.

Replaces the long-lived NPM_AUTH_TOKEN with npm's OIDC trusted
publishing. Adds id-token: write permission, upgrades npm to a version
that supports trusted publishing (>= 11.5.1), and drops the npm token
env vars. Lerna v9+ handles the OIDC exchange automatically.
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
revideo-docs Ready Ready Preview, Comment Jul 9, 2026 8:58pm
revideo-docs-redirect Ready Ready Preview, Comment Jul 9, 2026 8:58pm

Request Review

@hkonsti
hkonsti merged commit a97aea3 into main Jul 9, 2026
9 checks passed
@hkonsti
hkonsti deleted the hkonsti/canary-release-steps branch July 9, 2026 21:03
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.

1 participant