Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

OIDC trusted publishing E404 when publishing scoped packages from changesets/action #8976

Copy link
Copy link

Description

@bazokhan
Issue body actions

Is there an existing issue for this?

This issue exists in the latest npm version

  • I am using the latest npm (upgraded via npm install -g npm@latest in 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/core@0.2.0' 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

Workflow config:

  • Node 22
  • npm install -g npm@latest (to satisfy npm 11.5.1+ requirement)
  • id-token: write permission
  • 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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.