diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000..5c20812 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,46 @@ +module.exports = { + "branches": [ + "main" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + [ + "@semantic-release/release-notes-generator", + { + "linkCompare": true, + "linkReferences": true, + "writerOpts": { + "groupBy": "type", + "commitGroupsSort": "title", + "commitsSort": "header" + } + } + ], + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/git", + { + "message": "chore(release): ${nextRelease.version}", + "assets": [ + "CHANGELOG.md" + ] + } + ], + [ + "@semantic-release/gitea", + {} + ] + ], + "preset": "conventionalcommits", + "parserOpts": { + "issuePrefixes": [ + "#" + ], + "issueUrlFormat": `${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/issues/{{id}}` + } +}