Skip to content

Commit e61ab50

Browse files
authored
[BUGFIX] ensure we publish all packages regardless of changes (#6429)
1 parent dbec1dd commit e61ab50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/publish.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,11 @@ async function main() {
342342
// https://github.com/lerna/lerna/tree/master/commands/version#--exact
343343
// We use exact to ensure that our consumers always use the appropriate
344344
// versions published with each other
345+
// --force-publish ensures that all packages release a new version regardless
346+
// of whether changes have occurred in them
347+
// --yes skips the prompt for confirming the version
345348
nextVersion = retrieveNextVersion();
346-
execWithLog(`lerna version ${nextVersion} --exact`, true);
349+
execWithLog(`lerna version ${nextVersion} --force-publish --exact --yes`, true);
347350
console.log(`✅ ` + chalk.cyan(`Successfully Versioned ${nextVersion}`));
348351
} else {
349352
console.log('⚠️ ' + chalk.grey(`Skipping Versioning`));

0 commit comments

Comments
 (0)