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

Add support for --no-2fa flag #559

Merged
merged 4 commits into from Aug 2, 2020
Merged

Add support for --no-2fa flag #559

merged 4 commits into from Aug 2, 2020

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Jul 29, 2020

This adds a --no-2fa CLI option as discussed in #398 to bypass enabling 2FA on new packages.
The check is pretty trivial; if the 2Fa option is set to false, the task is skipped. Default value is true.

One of the reasons I'm wanting this is that I use semantic-release to handle releasing my packages, which requires not having 2fa enabled. I'm looking to use np for doing some pre-publishing of an upcoming package of mine, as semantic-release does not support 0.x.x versions.

Fixes #398
Closes #515 (by superseding)

source/cli.js Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
Co-authored-by: Pedro Augusto de Paula Barbosa <papb1996@gmail.com>
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.

Option to disable 2FA
3 participants