-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from mixmaxhq/kris/CORE-5857
feat: add module config
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# module configuration | ||
|
||
To be used for monorepo modules, such as `terraform`, to create a tag and its changelog using semantic release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
module.exports = { | ||
branches: [ | ||
'(master|main)', | ||
{ name: 'beta', prerelease: true }, | ||
{ name: 'alpha', prerelease: true }, | ||
], | ||
plugins: [ | ||
[ | ||
'@semantic-release/commit-analyzer', | ||
{ | ||
preset: 'conventionalcommits', | ||
releaseRules: [ | ||
{ | ||
type: 'chore', | ||
scope: 'deps', | ||
release: 'patch', | ||
}, | ||
], | ||
}, | ||
], | ||
[ | ||
'@semantic-release/release-notes-generator', | ||
{ | ||
preset: 'conventionalcommits', | ||
presetConfig: { | ||
types: [ | ||
{ | ||
type: 'feat', | ||
section: 'Features', | ||
}, | ||
{ | ||
type: 'fix', | ||
section: 'Bug Fixes', | ||
}, | ||
{ | ||
type: 'build', | ||
section: 'Dependencies and Other Build Updates', | ||
hidden: false, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
'@semantic-release/changelog', | ||
'@semantic-release/github', | ||
'@semantic-release/git', | ||
], | ||
}; |