Skip to content

ci: fix OIDC trusted publishing (drop registry-url) - #8

Merged
luishcastroc merged 1 commit into
mainfrom
fix-oidc-publish
Aug 14, 2026
Merged

ci: fix OIDC trusted publishing (drop registry-url)#8
luishcastroc merged 1 commit into
mainfrom
fix-oidc-publish

Conversation

@luishcastroc

Copy link
Copy Markdown
Contributor

The v0.1.1 publish failed with 404 Not Found - PUT …: npm masks auth failures on scoped packages as 404s. Cause: setup-node's registry-url option writes an .npmrc with an auth-token placeholder (NODE_AUTH_TOKEN = XXXXX-…), and npm sends that bogus token instead of attempting the OIDC trusted-publishing exchange. The always-auth warning in the log is the same .npmrc talking.

  • Remove registry-url from setup-node — trusted publishing needs no registry auth config at all
  • Add a workflow_dispatch trigger with a tag input (checks out and stamps that tag) so a release whose automatic publish failed can be re-published without deleting/recreating the GitHub release — needed right now for v0.1.1
  • Prefix repository.url with git+ to silence npm's normalization warning at publish

After merging: dispatch the workflow with tag: v0.1.1. Requires the trusted publisher on npm to be registered as repo angular-gsap/core, workflow release.yml.

🤖 Generated with Claude Code

setup-node's registry-url writes an .npmrc auth-token placeholder that
npm sends instead of doing the OIDC exchange, which the registry rejects
as a 404. Drop it, allow manual dispatch with a tag to re-publish a
release whose automatic run failed, and normalize repository.url.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@luishcastroc
luishcastroc merged commit 7841b24 into main Aug 14, 2026
1 check passed
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