Skip to content

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)

Co-authored-by: Sindre Sorhus <[email protected]>
@G-Rath G-Rath requested a review from sindresorhus August 1, 2020 23:22
Co-authored-by: Pedro Augusto de Paula Barbosa <[email protected]>
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