Skip to content

Commit

Permalink
chore: Add prerelease script
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Aug 25, 2021
1 parent fac735f commit 3d6046e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -25,6 +25,7 @@
"check-angular-versions": "ts-node scripts/check-angular-versions.ts",
"generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
"publish-release": "lerna publish -m \"chore: Publish %s\" --no-push --force-publish",
"publish-prerelease": "lerna publish -m \"chore: Pre-release %s\" preminor --no-push --force-publish --preid beta --dist-tag next --registry=http://localhost:4873",
"publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions scripts/changelogs/generate-changelog.ts
Expand Up @@ -5,6 +5,12 @@ import { addStream } from './add-stream';
// tslint:disable-next-line:no-var-requires
const conventionalChangelogCore = require('conventional-changelog-core');

if (process.env.SKIP_CHANGELOG || process.env.npm_config_argv?.includes('publish-prerelease')) {
// tslint:disable-next-line:no-console
console.log(`Skipping changelog generation for pre-release`);
process.exit(0);
}

/**
* The types of commit which will be included in the changelog.
*/
Expand Down

0 comments on commit 3d6046e

Please sign in to comment.