diff --git a/module/README.md b/module/README.md new file mode 100644 index 0000000..6542f78 --- /dev/null +++ b/module/README.md @@ -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. diff --git a/module/index.js b/module/index.js new file mode 100644 index 0000000..4696228 --- /dev/null +++ b/module/index.js @@ -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', + ], +};