Skip to content

Commit adc823e

Browse files
committed
fix: add sync point for publish step
1 parent b56e1c0 commit adc823e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/createInlinePluginCreator.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function createInlinePluginCreator(packages, multiContext, synchronizer, flags)
106106
pkg._analyzed = true;
107107
await waitForAll("_analyzed");
108108

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

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

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

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

0 commit comments

Comments
 (0)