Skip to content

Commit

Permalink
[BUGFIX] ensure we publish all packages regardless of changes
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Sep 11, 2019
1 parent 47a8052 commit 6fa2e23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`));
Expand Down

0 comments on commit 6fa2e23

Please sign in to comment.