Browse Source

ci(scripts): create publish script

pull/2366/head
mehmet-erim 7 years ago
parent
commit
40447cdfc8
  1. 14
      npm/ng-packs/scripts/publish.js
  2. 4
      npm/publish.ps1

14
npm/ng-packs/scripts/publish.js

@ -0,0 +1,14 @@
// ESM syntax is supported.
import execa from 'execa';
import fse from 'fs-extra';
(async () => {
try {
await execa('yarn', ['install-new-dependencies'], { stdout: 'inherit' });
} catch (error) {
console.error(error.stderr);
process.exit(1);
}
process.exit(0);
})();

4
npm/publish.ps1

@ -3,11 +3,11 @@
& npm run build
& cd ../../
& yarn
& yarn lerna publish minor --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version
& yarn lerna publish patch --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version
& cd ng-packs\scripts
& npm run sync
& cd ../../
& yarn update:templates
& yarn global add gulp
& yarn gulp:app
& yarn gulp:module
& yarn gulp:module

Loading…
Cancel
Save