Skip to content

Commit

Permalink
[BUGFIX publish] publish all packages regardless of diff
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jul 20, 2019
1 parent 6963c7f commit c2591f1
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 @@ -333,7 +333,10 @@ async function main() {
let nextVersion = options.currentVersion;
if (!options.skipVersion) {
nextVersion = retrieveNextVersion();
execWithLog(`lerna version ${nextVersion}`, true);
// we use --force-publish=* here to ensure that regardless of changes
// all packages are incremented and published, otherwise only packages
// with changes will be published.
execWithLog(`lerna version ${nextVersion} --force-publish=*`, true);
console.log(`✅ ` + chalk.cyan(`Successfully Versioned ${nextVersion}`));
} else {
console.log('⚠️ ' + chalk.grey(`Skipping Versioning`));
Expand Down

0 comments on commit c2591f1

Please sign in to comment.