.releaserc.json•3.98 kB
{
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "feat", "scope": "minor", "release": "patch" },
{ "type": "feat", "scope": "patch", "release": "patch" },
{ "type": "feat", "scope": "major", "release": "minor" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "scope": "security", "release": "minor" },
{ "type": "fix", "scope": "critical", "release": "minor" },
{ "type": "fix", "scope": "major", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "scope": "critical", "release": "minor" },
{ "type": "perf", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "docs", "release": false },
{ "type": "style", "release": false },
{ "type": "chore", "release": false },
{ "type": "refactor", "release": false },
{ "type": "test", "release": false },
{ "type": "build", "release": false },
{ "type": "ci", "release": false },
{ "type": "breaking", "release": "major" },
{ "breaking": true, "release": "major" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{ "type": "feat", "section": "🚀 Major Features", "scope": "major" },
{ "type": "feat", "section": "✨ Minor Features", "scope": "minor" },
{ "type": "feat", "section": "🔧 Incremental Features", "scope": "patch" },
{ "type": "feat", "section": "🚀 Features" },
{ "type": "fix", "section": "🔒 Security Fixes", "scope": "security" },
{ "type": "fix", "section": "🚨 Critical Bug Fixes", "scope": "critical" },
{ "type": "fix", "section": "🔧 Major Bug Fixes", "scope": "major" },
{ "type": "fix", "section": "🐛 Bug Fixes" },
{ "type": "perf", "section": "🚀 Critical Performance Improvements", "scope": "critical" },
{ "type": "perf", "section": "⚡ Performance Improvements" },
{ "type": "revert", "section": "⏪ Reverts" },
{ "type": "docs", "section": "📚 Documentation", "hidden": false },
{ "type": "style", "section": "💎 Styles", "hidden": true },
{ "type": "chore", "section": "🔧 Miscellaneous Chores", "hidden": true },
{ "type": "refactor", "section": "♻️ Code Refactoring", "hidden": true },
{ "type": "test", "section": "✅ Tests", "hidden": true },
{ "type": "build", "section": "🔨 Build System", "hidden": true },
{ "type": "ci", "section": "👷 Continuous Integration", "hidden": true }
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)."
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "echo ${nextRelease.version} > VERSION"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "VERSION"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/*.whl",
"label": "Python wheel"
},
{
"path": "dist/*.tar.gz",
"label": "Source distribution"
}
]
}
]
]
}