Closed not-an-aardvark closed 6 years ago
Does this mean I would lose the ability to publish typescript-eslint-parser autonomously?
@JamesHenry There's some more discussion about this in https://github.com/eslint/eslint/issues/10631. I don't want you to lose that ability, so we'll figure something out so that you still can publish autonomously.
I realized we can probably pause for input in the middle of the release without breaking up the release script, if we're willing to do enough process juggling:
Closing in favor of https://github.com/eslint/eslint-release/pull/27
(refs https://github.com/eslint/eslint/issues/10631)
This updates the release API to not publish to npm when initially called, and to only publish to npm when invoked as a separate process. This will make it possible to pause the build to ask the user for a TOTP code before publishing, provided that consumers of the package are updated accordingly.
I think this would be the best approach if we want to start doing npm 2FA now before waiting for time-limited tokens (assuming they are implemented eventually). With this change, it would be relatively easy to update the Jenkins build tasks to prompt the user for a OTP and then publish the release afterwards.