Last week I published a new npm package, hakoniwa-term.

I did the first publish manually and set a GitHub Actions workflow to automate the publish process.

After adding a GitHub Actions workflow so that creating a release would automatically publish the latest package to npm, I registered my repository information on the npm side to use OIDC authentication. I had already done the same setup for another package called hyouji, so the configuration itself went smoothly. However, when I actually created a release, even though OIDC authentication worked fine, the npm publish step aborted with a 404 error.

What GitHub Actions showed me.

npm ERR! 404 Not Found - PUT https://registry.npmjs.org/hakoniwa-term