Skip to content

Revert removing npm config set when npm publishing #1398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

vergilfromadyen
Copy link
Collaborator

We followed the documentation but got an ENEEDAUTH error.

With the npm config set approach we got a 404 instead, which suggests a wrong API key. However, we know the API key was correct, so the other option was having conflicting ways to configure publishing (NODE_AUTH_TOKEN and npm config set were both present), or a string interpolation issue (there were no spaces inside the braces).

This commit implements only a single way to configure the auth token.

We followed the [documentation](https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm) but got an `ENEEDAUTH` error.

With the `npm config set` approach we got a 404 instead, which suggests a wrong API key.  
However, we know the API key was correct, so the other option was having conflicting ways to configure publishing (`NODE_AUTH_TOKEN` and `npm config set` were both present), or a string interpolation issue (there were no spaces inside the braces).

This commit implements only a single way to configure the auth token.
@vergilfromadyen vergilfromadyen requested a review from a team September 4, 2024 09:22
Copy link

sonarqubecloud bot commented Sep 4, 2024

@vergilfromadyen vergilfromadyen merged commit 3c578a9 into main Sep 4, 2024
8 checks passed
@vergilfromadyen vergilfromadyen deleted the vergilfromadyen-patch-1 branch September 4, 2024 09:28
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.

2 participants