Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Fix release script #529

Merged
merged 1 commit into from Apr 18, 2019
Merged

Fix release script #529

merged 1 commit into from Apr 18, 2019

Conversation

fson
Copy link
Contributor

@fson fson commented Apr 18, 2019

Because of lacking support for npm 2FA (lerna/lerna#1091), our release script often fails and leaves behind a bad mess with tags to remove, working tree to clean and commits to reverse if you want to attempt again. This is kind of bad, if you need to make a release and you end up fighting the tools that are supposed to help with it, not make it more difficult.

This PR aims to fix some of the issues with the release script. Instead trying to use lerna publish for the whole process, we now call lerna version to determine which packages to publish, bump versions and tag them in git. Then the script loops over all packages and finds those with a version not found in the npm registry and simply runs npm publish to publish them, in topologically sorted order.

npm publish handles npm 2FA just fine, and prompts for a one time password, if needed, so 2FA should no longer be an issue.

@fson fson requested review from dsokal and ide April 18, 2019 17:33
@fson fson merged commit 6ad63c4 into master Apr 18, 2019
@fson fson deleted the @fson/lerna-fix branch April 18, 2019 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant