Skip to content
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

The automated release is failing 🚨 #74

Open
mikeal opened this issue Aug 21, 2018 · 5 comments
Open

The automated release is failing 🚨 #74

mikeal opened this issue Aug 21, 2018 · 5 comments

Comments

@mikeal
Copy link
Owner

mikeal commented Aug 21, 2018

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

@gr2m
Copy link
Collaborator

gr2m commented Aug 21, 2018

@mikeal can you re-run semantic-release-cli setup? That’ll fix the tokens. npm invalided all tokens recently

@mikeal
Copy link
Owner Author

mikeal commented Aug 21, 2018

@gr2m I got this error:

(master)⚡ % semantic-release-cli setup                                                                                                                             ~/git/r2
? What is your npm registry? https://registry.npmjs.org/
? What is your npm username? mikeal
ERR! semantic-release Error: Could not login to npm.
ERR! semantic-release     at getNpmToken (/usr/local/lib/node_modules/semantic-release-cli/src/lib/npm.js:55:21)
ERR! semantic-release     at process._tickCallback (internal/process/next_tick.js:68:7)
ERR! semantic-release  { Error: Could not login to npm.
ERR! semantic-release     at getNpmToken (/usr/local/lib/node_modules/semantic-release-cli/src/lib/npm.js:55:21)
ERR! semantic-release     at process._tickCallback (internal/process/next_tick.js:68:7)
ERR! semantic-release   stack:
ERR! semantic-release    'Error: Could not login to npm.\n    at getNpmToken (/usr/local/lib/node_modules/semantic-release-cli/src/lib/npm.js:55:21)\n    at process._tickCallback (internal/process/next_tick.js:68:7)' }
(master)⚡ [1] % semantic-release-cli setup

@gr2m
Copy link
Collaborator

gr2m commented Aug 21, 2018

would you mind if I created a dedicated npm account only for r2 releases? It’s what I usually do for my bigger repositories, it’s also more secure because npm tokens cannot be scoped by package and if someone were to get access to your token they could do some damage to all npm packages you have write access to

@mikeal
Copy link
Owner Author

mikeal commented Aug 21, 2018 via email

@gr2m
Copy link
Collaborator

gr2m commented Aug 21, 2018

can you invite https://www.npmjs.com/~r2bot as collaborator to the r2 package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants