From 0d1f41b7d6e852540bbffcdfe9544d2c22610c57 Mon Sep 17 00:00:00 2001 From: MattMod <86956468+MattMod@users.noreply.github.com> Date: Fri, 10 Jun 2022 17:46:12 +0200 Subject: [PATCH] chore: release config creation --- release.config.js | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 release.config.js diff --git a/release.config.js b/release.config.js new file mode 100644 index 000000000..4287d96a1 --- /dev/null +++ b/release.config.js @@ -0,0 +1,48 @@ +// https://semantic-release.gitbook.io/semantic-release/ + +module.exports = { + 'branches': [ + 'main', + { + 'name': 'develop', + 'channel': 'channel-${name}', + 'prerelease': true + }, + { + 'name': 'test', + 'channel': 'channel-${name}', + 'prerelease': true + }, + ], + 'tagFormat': '${version}', + 'preset': 'conventionalcommits', + 'plugins': [ + ['@semantic-release/commit-analyzer', { + } + ], + ['@semantic-release/release-notes-generator', { + 'writerOpts': { + 'commitsSort': ['perf', 'feat', 'fix'], + } + } + ], + ['@semantic-release/exec', { + 'verifyReleaseCmd': 'echo ${nextRelease.version} > .VERSION', + } + ], + ['@semantic-release/changelog', { + 'changelogFile': 'CHANGELOG.md', + 'changelogTitle': '# Monitoraggio.RepubblicaDigitale.Gov.it' + } + ], + ['@semantic-release/git', { + 'assets': ['CHANGELOG.md'] + } + ], + ['@semantic-release/github', { + 'assets': [ + {'path': 'CHANGELOG.md'}, + ] + }], + ] +}