actions / setup-node

Set up your GitHub Actions workflow with a specific version of node.js
MIT License
3.83k stars 1.25k forks source link

404 when trying to publish to npm. #1068

Open ggsdc opened 3 months ago

ggsdc commented 3 months ago

Description: Same github action triggered by tag creation worked 2 weeks ago, now it fails when trying to publish a new version to npm.

Action version: using v4.

Platform:

Runner type:

Tools version: node version 21.x

Repro steps:
Here is the github action: https://github.com/baobabsoluciones/mango-ui/blob/master/.github/workflows/mango-ui-deploy-npm.yml Here is the run that worked 2 weeks ago: https://github.com/baobabsoluciones/mango-ui/actions/runs/9052522117 And here are the two failing runs from yesterday and today: https://github.com/baobabsoluciones/mango-ui/actions/runs/9250954159 and https://github.com/baobabsoluciones/mango-ui/actions/runs/9267599146

Expected behavior: For the workflow to work correctly and a new version to get published

Actual behavior: A 404 error gets raised.

HarithaVattikuti commented 3 months ago

Hello @ggsdc Thank you for creating this issue. We will investigate it and get back to you as soon as we have some feedback

ggsdc commented 2 months ago

Hello @HarithaVattikuti and @KathiravanKrish

I may have missed your initial reply and I was checking back on this as I had to do a new upload manually of the library in said repository.

Is there any news on this issue or how to fix it? Is there any class of log that I may be able to download that could give you back more information?

Thank you in advance for your help

KathiravanKrish commented 1 month ago

Hello @ggsdc , Thank you once again for bringing this issue to our attention. We tried to reproduce the issue from our end but unable to reproduce with the same workflow that you ran, we were able to publish the package successfully without encountering the 404 error. Please find the screenshot for reference.

We have reviewed the package.json file & the GitHub Actions workflow configuration for the baobabsoluciones/mango-ui repository and confirmed that the package name mango-vue is correctly mapped and should not be causing the issue.

image

Here are a few things we wanted to verify on your side to further investigate:

NPM Token: Make sure the NODE_AUTH_TOKEN used in the workflow is valid and has the appropriate permissions to publish packages. Registry URL: Confirm that the registry URL is set correctly to https://registry.npmjs.org. Please double-check the npm configuration and the availability of the package name on the npm registry.

ggsdc commented 1 month ago

Thank you @KathiravanKrish I would double check the token, as the package is currently registered under our name and we can upoload manually.

aparnajyothi-y commented 1 month ago

Hello @ggsdc, a gentle reminder to please check and confirm the npm configuration and verify the availability of the package name on the npm registry. Thank you.