Support 2fa / otp when publishing
- Dominant language
- JavaScript
- Stars
- 2.4k
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
There's currently no way to pass a OTP password to `npm` when running `bolt publish`.
Looks like adding the `tty: true` option [within `bolt`](https://github.com/boltpkg/bolt/blob/master/src/utils/npm.js#L60-L63) might allow entering a OTP on the cli whenever `npm` asks for it?
[These output pipelines](https://github.com/boltpkg/bolt/blob/master/src/utils/processes.js#L76-L93) might also have to be disabled, otherwise the terminal may get all screwy.
Contributor guide
Research direction
Start in src/utils/npm.js around lines 60-63 and inspect how bolt publish invokes npm. Then review the output pipelines in src/utils/processes.js around lines 76-93. Done means publishing can accept an npm OTP through the CLI without the terminal output becoming corrupted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100