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
[BUG] ENEEDAUTH issue when running "npm publish" within a monorepo on a ci environment #6184
Comments
@vighnesh153 I ran into this today, and it turns out that npm doesn't usually accept an auth token via an environemnt variable like
In your example: - name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
+ registry-url: "https://registry.npmjs.org" Hope this helps! 🤞 |
This was the issue. Thanks a lot. I wish the error message was more descriptive. |
* Correction to release workflow based on npm/cli#6184 * Fix for EOL character * Add gitattributes file for eol=lf * Add extra line at EOF --------- Co-authored-by: Mike Chu <mike.chu@optimizely.com>
npm/cli#6184 This was removed in #2092
npm/cli#6184 This was removed in #2092. Needs to be added back
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I have a monorepo and I am trying to publish all the packages
./packages/*
to NPM using Github Actions. When I run thenpm publish
command, I get the following error:I have already provided the
NODE_AUTH_TOKEN
environment variable but it is still not able to authenticate that.There is an open issue which looks similar to this but it has got no comments (#5805)
Expected Behavior
The packages should be published without
ENEEDAUTH
error.Steps To Reproduce
packages
directory and add it in the rootpackage.json
package.json
fileEnvironment
9.5.0
v18.14.0
v2.301.1
The text was updated successfully, but these errors were encountered: