Skip to content

Commit

Permalink
feat(release.config.js): use imported releaseRules
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Jan 2, 2021
1 parent 532934d commit 2fe163c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ const SHOULD_DEPLOY = process.env.SHOULD_DEPLOY === 'true';
debug(`SHOULD_UPDATE_CHANGELOG=${SHOULD_UPDATE_CHANGELOG}`);
debug(`SHOULD_DEPLOY=${SHOULD_DEPLOY}`);

const options = require('./.changelogrc.js');
const { changelogTitle, parserOpts, writerOpts } = options;
const {
changelogTitle,
parserOpts,
writerOpts,
additionalReleaseRules
} = require('./.changelogrc.js');

module.exports = {
branches: [
Expand All @@ -27,10 +31,7 @@ module.exports = {
{
preset: 'angular',
parserOpts,
// ! If you change releaseRules, you should also take a look at:
// ! - dependabot.yml
// ! - .changelogrc.js
releaseRules: [{ type: 'build', release: 'patch', title: 'Build System' }]
releaseRules: additionalReleaseRules
}
],
[
Expand Down

0 comments on commit 2fe163c

Please sign in to comment.