From e61ab5038bdeebebfa7bbe44ea8242d553327b08 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Wed, 11 Sep 2019 11:45:06 -0700 Subject: [PATCH] [BUGFIX] ensure we publish all packages regardless of changes (#6429) --- bin/publish.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/publish.js b/bin/publish.js index 104e724a909..294e92ac4cd 100644 --- a/bin/publish.js +++ b/bin/publish.js @@ -342,8 +342,11 @@ async function main() { // https://github.com/lerna/lerna/tree/master/commands/version#--exact // We use exact to ensure that our consumers always use the appropriate // versions published with each other + // --force-publish ensures that all packages release a new version regardless + // of whether changes have occurred in them + // --yes skips the prompt for confirming the version nextVersion = retrieveNextVersion(); - execWithLog(`lerna version ${nextVersion} --exact`, true); + execWithLog(`lerna version ${nextVersion} --force-publish --exact --yes`, true); console.log(`✅ ` + chalk.cyan(`Successfully Versioned ${nextVersion}`)); } else { console.log('⚠️ ' + chalk.grey(`Skipping Versioning`));