Skip to content

fix: publish via npm OIDC trusted publisher#43

Merged
robinandeer merged 1 commit into
mainfrom
fix/npm-publish-oidc
Jul 6, 2026
Merged

fix: publish via npm OIDC trusted publisher#43
robinandeer merged 1 commit into
mainfrom
fix/npm-publish-oidc

Conversation

@robinandeer

Copy link
Copy Markdown
Collaborator

Why

Publish workflow auth works (npm whoami) but npm publish fails with EOTP — token path requires 2FA OTP. Trusted publisher is configured on npm for runwayml/avatars-sdk-react + publish.yml.

How it works

  • id-token: write → GitHub OIDC token for npm
  • Remove NODE_AUTH_TOKEN / npm whoami — publish uses trusted publisher, not secret token
  • npm publish --provenance on both packages

Before merge

  • Trusted publisher also set on @runwayml/avatars-react (same repo + publish.yml)

Verify

  • Merge → Actions → Publish → Run workflow on main
  • @runwayml/avatars@0.17.0 and @runwayml/avatars-react@0.17.0 on npm

Request id-token for GitHub Actions OIDC, drop NPM_TOKEN auth from publish, and use --provenance so npm accepts the configured trusted publisher.
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
avatars-playground Ready Ready Preview, Comment Jul 6, 2026 6:07pm

Request Review

@robinandeer robinandeer merged commit b1f48bc into main Jul 6, 2026
6 checks passed
@robinandeer robinandeer deleted the fix/npm-publish-oidc branch July 6, 2026 18:10
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