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

does not prompt OTP when adding --only-version #948

Closed
ghiscoding opened this issue Oct 16, 2022 · 1 comment
Closed

does not prompt OTP when adding --only-version #948

ghiscoding opened this issue Oct 16, 2022 · 1 comment

Comments

@ghiscoding
Copy link
Contributor

I can use release-it and I get all the prompts and everything, including the OTP but if I try to use it with release-it --only-version then it never prompts for the OTP. I understand that --only-version will remove all the prompts (that's mainly what I want) but shouldn't the OTP be prompt?

Running the command

`release-it --only-version`

I get the following error

npm notice
npm notice Publishing to https://registry.npmjs.org/
npm ERR! This operation requires a one-time password from your authenticator.
npm ERR! You can provide a one-time password by passing --otp=<code> to the command you ran.
npm ERR! If you already provided a one-time password then it is likely that you either typoed
npm ERR! it, or it timed out. Please try again.

Alternative

For now I can bypass the problem by running release-it with all the prompts and the OTP also shows up as a prompt but it's inconvenient since I'd really like to get only the version and OTP prompt.

package version
release-it ^15.5.0
@release-it/conventional-changelog ^5.1.1
NodeJS 16.18.0
npm 8.10.0
Windows 10
@webpro
Copy link
Collaborator

webpro commented Dec 2, 2022

Thanks for reporting this, released this in v15.5.1.

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

No branches or pull requests

2 participants