Skip to content

Commit

Permalink
fix: add sync point for publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 5, 2022
1 parent b56e1c0 commit adc823e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/createInlinePluginCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
pkg._analyzed = true;
await waitForAll("_analyzed");

// Make sure type is "patch" if the package has any deps that have changed.
// Make sure type is "patch" if the package has any deps that have been changed.
pkg._nextType = resolveReleaseType(pkg, flags.deps.bump, flags.deps.release);

debug(debugPrefix, "commits analyzed");
Expand Down Expand Up @@ -219,6 +219,7 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
pkg._published = true;

debug(debugPrefix, "published");
await waitForAll("_published", (p) => p._nextType);

// istanbul ignore next
return res.length ? res[0] : {};
Expand Down

0 comments on commit adc823e

Please sign in to comment.