Skip to content

Commit

Permalink
chore: release config creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MattMod authored Jun 10, 2022
1 parent 37ffe5c commit 0d1f41b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -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'},
]
}],
]
}

0 comments on commit 0d1f41b

Please sign in to comment.