Skip to content

Commit

Permalink
feat: add module config
Browse files Browse the repository at this point in the history
  • Loading branch information
kristina committed Mar 15, 2024
1 parent cd1a387 commit 155a8ee
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 155a8ee

Please sign in to comment.