ci(shipjs): publish packages topographically #23
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If anything goes wrong, like npm being down in the middle of publishing, we want to have gotten to a valid state, only having packages that are depended on, not ones that depend on other packages that aren't yet published.
There's two commits here. First a manual reorder, then using lerna and shelljs (dependency of shipjs) to create the list.
After this is done here, we could either build this into shipjs or have this copied into other packages.
What this PR doesn't solve is if there's a failure midway, a rerun will still fail (as the first ones are already published). You'd still do that manually or publish a second patch.