Repository navigation
Open
Description
Is there an existing issue for this?
- I have searched the existing issues and found similar reports: [BUG] OIDC publish failing from GitHub actions #8730, [BUG] Publishing another version with OIDC fails to find an earlier published version of a scoped package #8678
This issue exists in the latest npm version
- I am using the latest npm (upgraded via
npm install -g npm@latestin workflow)
Current Behavior
Publishing 12 scoped packages (@sbtools/core, @sbtools/sdk, @sbtools/plugin-*) via npm trusted publishing (OIDC) from GitHub Actions fails with E404 on all packages:
npm error 404 Not Found - PUT https://registry.npmjs.org/@sbtools%2fcore - Not found
npm error 404 '@sbtools/[email protected]' is not in this registry.
npm notice Access token expired or revoked. Please try logging in again.
The workflow uses OIDC (no NPM_TOKEN):
No NPM_TOKEN found, but OIDC is available - using npm trusted publishing
Provenance is signed successfully before the PUT fails:
npm notice publish Signed provenance statement with source and build information from GitHub Actions
npm notice publish Provenance statement published to transparency log
Expected Behavior
npm publish should succeed using trusted publishing (OIDC) without NPM_TOKEN.
Steps To Reproduce
- Repo: https://github.com/bazokhan/supabase-tools
- Workflow: https://github.com/bazokhan/supabase-tools/blob/main/.github/workflows/release.yml
- Trigger: push to main (when changesets determines packages to publish)
Workflow config:
- Node 22
npm install -g npm@latest(to satisfy npm 11.5.1+ requirement)id-token: writepermission- changesets/action runs
npx changeset publish --no-git-tag - Trusted publishers configured on npm for all 12 packages: repo=bazokhan/supabase-tools, workflow=release.yml
Environment
- npm: latest (via npm install -g npm@latest)
- Node.js: 22.22.0 (GitHub hosted runner)
- OS: Ubuntu (GitHub actions runner)
- Monorepo with 12 packages in packages/*
Verified
- @sbtools npm org exists
- All 12 packages have trusted publisher configured on npmjs.com (repo: bazokhan/supabase-tools, workflow: release.yml)
- Workflow runs directly on push to main (no workflow_call)
- id-token: write is set
Reacted by Stefano Baruzzo, Clément Balarot, Universe and Dmitriy Fridkin
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix: use NPM_TOKEN instead of OIDC due to npm CLI bug
fix: upgrade npm for Trusted Publishing OIDC support
RALPH: Switch release workflow to npm Trusted Publishing (OIDC) (issue …
RALPH: Switch release workflow to npm Trusted Publishing (OIDC) (issue …
ci: fix npm publish — add NPM_TOKEN auth, remove --provenance
fix(ci): upgrade to Node 24 for npm OIDC trusted publishing
fix(ci): use Node 24 for OIDC trusted publishing of scoped packages
fix(ci): upgrade npm for OIDC scoped package fix
fix(ci): upgrade npm for OIDC scoped package fix
fix npm publish: use Node 24 for OIDC trusted publishing support
fix(ci): use Node.js 24 for publish to get npm v11 with OIDC support
Fix Trusted Publishing 404: use Node.js 24 for publish job
fix: use NPM_TOKEN for npm publishing instead of OIDC
ci(release): upgrade npm to 11.x for scoped package OIDC fix (npm/cli…
ci: migrate release.yml to npm OIDC Trusted Publishing
81 remaining items
ci: le workflow porte les faits sourcés, plus mes hypothèses
Use a classic NPM_TOKEN instead of OIDC for the release workflow
docs: record the npm publishing setup and the known OIDC 404 bug
Make npm-cli and bindings publish steps idempotent (#64)
Make npm-cli and bindings publish steps idempotent (#64)
fix(ci): upgrade npm before publish to avoid OIDC provenance 404
fix(ci): 发布 404 的真根因 —— setup-node 的 registry-url 抢占了 OIDC 认证
ci: publish through npm trusted publishing instead of a token
ci: le workflow porte les faits sourcés, plus mes hypothèses
ci(mcp): fall back to NPM_TOKEN for publish while npm OIDC 404s
chore(mcp): bump ocean-uiux-mcp to 1.0.1 (#3)
fix(ci): move .nvmrc to Node 24.21.0 so OIDC publishing can work at a…
fix(ci): publish @soleur/opencode via npm OIDC trusted publishing (#1…
fix(ci): publish @soleur/opencode via npm OIDC trusted publishing (#1…
npm: align-409 idempotent guard + granular-token publishing guide [sk…