chore: replace release.config.js with .releaserc.json for semantic release configuration

This commit is contained in:
vincent-herlemont
2025-06-17 10:28:07 +09:00
parent 2a34adc35f
commit c177e97857
4 changed files with 153 additions and 52 deletions
+112
View File
@@ -0,0 +1,112 @@
{
"branches": [
"main"
],
"tagFormat": "${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{
"breaking": true,
"release": "minor"
},
{
"revert": true,
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"emoji": ":racehorse:",
"release": "patch"
},
{
"emoji": ":bug:",
"release": "patch"
},
{
"emoji": ":penguin:",
"release": "patch"
},
{
"emoji": ":apple:",
"release": "patch"
},
{
"emoji": ":checkered_flag:",
"release": "patch"
},
{
"tag": "BUGFIX",
"release": "patch"
},
{
"tag": "FEATURE",
"release": "minor"
},
{
"tag": "SECURITY",
"release": "patch"
},
{
"tag": "Breaking",
"release": "minor"
},
{
"tag": "Fix",
"release": "patch"
},
{
"tag": "Update",
"release": "minor"
},
{
"tag": "New",
"release": "minor"
},
{
"component": "perf",
"release": "patch"
},
{
"component": "deps",
"release": "patch"
},
{
"type": "FEAT",
"release": "minor"
},
{
"type": "FIX",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "bash version_update.sh ${nextRelease.version}",
"publishCmd": "bash cargo_publish.sh"
}
],
"@semantic-release/github"
]
}