From 6fa2e23d977fc616a5531d1575f24806f5494411 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Wed, 11 Sep 2019 10:14:12 -0700 Subject: [PATCH] [BUGFIX] ensure we publish all packages regardless of changes --- bin/publish.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/publish.js b/bin/publish.js index 595992b0b12..ebcf932b4aa 100644 --- a/bin/publish.js +++ b/bin/publish.js @@ -328,8 +328,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`));