Skip to content

Commit

Permalink
Add force-publish
Browse files Browse the repository at this point in the history
This enables us to publish even if nothing has changed since the last time. Useful for situations where we just want to force an increment in version numbers.

See https://www.npmjs.com/package/lerna#--force-publish-packages

@W-4162004@
  • Loading branch information
Nick Chen committed Jul 21, 2017
1 parent a3da78a commit 4f5fe51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ shell.exec('npm run test');
// This will still make a commit in Git with the tag of the version used
const nextVersion = process.env['VERSION_INCREMENT'];
if (nextVersion) {
shell.exec(`lerna publish --exact --repo-version ${nextVersion} --skip-npm`);
shell.exec(
`lerna publish --force-publish --exact --repo-version ${nextVersion} --yes --skip-npm`
);
} else {
shell.exec('lerna publish --exact --cd-version minor --yes --skip-npm');
shell.exec(
'lerna publish --force-publish --exact --cd-version minor --yes --skip-npm'
);
}

// Generate the .vsix files
Expand Down

0 comments on commit 4f5fe51

Please sign in to comment.