npm Publish 404 Error After OIDC Success Fixed by Resetting Trusted Publisher
A developer automating npm publishes via GitHub Actions encountered a 404 error during the publish step despite OIDC authentication completing successfully. The error affected the package hakoniwa-term, with npm rejecting the PUT request to its registry even though the package existed and the developer was listed as its maintainer. AI tools initially failed to identify the root cause, noting the unusual combination of successful authentication alongside a 404 rather than the expected 403. The issue was ultimately traced to the npm Trusted Publisher configuration, which appeared correct but had silently fallen out of sync. Deleting and recreating the Trusted Publisher setup immediately resolved the problem and restored the automated release workflow.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in