Improve the release process to better handle OTP
See original GitHub issueI was able to release 9.4.0
following @ntwb’s instructions.
It was a bit clunky because:
- I had to, as per the instructions, manually delete and re-checkout the
.npmrc
file - I had to run
NPM_CONFIG_OTP=123456 npm run release
to trigger the prerelease checks, wait for publish step to fail because the OTP would expire, then runNPM_CONFIG_OTP=987654 npm run release -- --skip-test --skip-cleanup
to publish before the new OTP expired.
Hopefully number 1 will be addressed by @hudochenkov’s PR to npmpub.
Maybe number 2 can also be addressed in npmpub, maybe by an interactive prompt that asks you for a OTP just before the publish step?
It’d be great to keep using npmpub for these reasons.
Thoughts?
Background: the stylelint npm package maintainers have turned on two-factor auth following ESLint’s postmortem recommendations. So we now need to supply a one-time-password when publishing npm packages.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
What tips do you have for improving software release ...
For proper release automation, I would suggest the following good practices: 1) Validate the quality of the code as soon as possible. For...
Read more >Tips to Improve Release Management for Apps
Looking for some tech tips on software release management? Pieces of expert advice, best strategies, and DevOps tools in this Relevant ...
Read more >Software Release Management: Best Practices, Stages & Roles
Release management is the process of optimizing all stages of launching a software product or feature. As enterprise software delivery ...
Read more >IT release management challenges & best practices
Common release management challenges and best practices to deal with them - 1. Poor build quality and release speed, 2. Lack of visibility,...
Read more >How to improve your OTP authentication using typing biometrics
See the most common types of OTP authentication and a valid alternative solution that provides increased security without harming the UX.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried
np
last two releases of stylelint-order and was quite happy with it. It’s much better thannpmpub
experience I had this weekend 😃Yes. In one of steps it asks for OTP in prompt.
For
np
we would need to add this line to.npmrc
, otherwise git tag would bev10.1.0
(notice the “v”):Excellent stuff. This is all very interesting.
I’d love to see how np’s OTP works in practice. If it’s an interactive prompt that works with our long-running tests then that would be superb.