Skip to content

Commit

Permalink
Merge pull request #158 from mixmaxhq/kris/CORE-5857
Browse files Browse the repository at this point in the history
feat: add module config
  • Loading branch information
kikajanovcik authored Mar 15, 2024
2 parents cd1a387 + 155a8ee commit 0be7476
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/README.md
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.
48 changes: 48 additions & 0 deletions module/index.js
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',
],
};

0 comments on commit 0be7476

Please sign in to comment.