geddski / grunt-release

Release a new version of your Node-based project
MIT License
389 stars 121 forks source link

Add some way to support 2-factor for npm #174

Closed RobinHerbots closed 3 years ago

RobinHerbots commented 5 years ago

You could otherwise allow to pass the otp code or allow an interactive input when npm requests it.

What is your thought about it?

[--otp ]

If you have two-factor authentication enabled in auth-and-writes mode then you can provide a code from your authenticator with this. If you don't include this and you're running from a TTY then you'll be prompted.