Skip to content

Commit

Permalink
feat(scripts): add npm publish runner command to publish script #2346
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-erim committed Dec 10, 2019
1 parent c5aa981 commit f2d19b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions npm/ng-packs/scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ if (versions.indexOf(nextSemanticVersion) < 0) {
);

await fse.rename('../lerna.json', '../lerna.version.json');

await execa('yarn', ['build', '--noInstall'], { stdout: 'inherit' });

await fse.rename('../lerna.exec.json', '../lerna.json');

await execa('yarn', ['lerna', 'exec', '--', 'npm', 'publish'], {
stdout: 'inherit',
cwd: '../',
});

await fse.rename('../lerna.json', '../lerna.exec.json');
} catch (error) {
console.error(error.stderr);
process.exit(1);
Expand Down

0 comments on commit f2d19b2

Please sign in to comment.