Skip to content

Commit

Permalink
publish also versions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Feb 21, 2019
1 parent 6c5ce6a commit 419ec46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/tasks/publish.js
Expand Up @@ -17,13 +17,10 @@ updateStatus({
shell.exec('NODE_ENV=production yarn build');
if (process.env.NEXT) {
shell.echo('Publishing release (next) to NPM...');
shell.exec(
'yarn lerna version prerelease --yes --preid next -m "next release (%v)"',
);
shell.exec('yarn lerna publish --dist-tag next');
shell.exec('yarn lerna publish --yes --dist-tag next');
} else {
shell.echo('Publishing release to NPM...');
shell.exec('yarn lerna publish');
shell.exec('yarn lerna publish minor --yes');
}
resolve(true);
} catch (error) {
Expand Down

0 comments on commit 419ec46

Please sign in to comment.