These plugins push commits directly to main, which conflicts with branch protection rules (PR required, signed commits). The tag and GitHub Release are created via API by @semantic-release/github and don't need push access.
42 lines
1.4 KiB
JSON
42 lines
1.4 KiB
JSON
{
|
|
"branches": ["main"],
|
|
"plugins": [
|
|
["@semantic-release/commit-analyzer", {
|
|
"preset": "conventionalcommits",
|
|
"releaseRules": [
|
|
{ "type": "feat", "release": "minor" },
|
|
{ "type": "fix", "release": "patch" },
|
|
{ "type": "perf", "release": "patch" },
|
|
{ "type": "refactor", "release": "patch" },
|
|
{ "type": "docs", "release": false },
|
|
{ "type": "style", "release": false },
|
|
{ "type": "chore", "release": false },
|
|
{ "type": "ci", "release": false },
|
|
{ "type": "test", "release": false },
|
|
{ "breaking": true, "release": "major" }
|
|
]
|
|
}],
|
|
["@semantic-release/release-notes-generator", {
|
|
"preset": "conventionalcommits",
|
|
"presetConfig": {
|
|
"types": [
|
|
{ "type": "feat", "section": "🚀 Features" },
|
|
{ "type": "fix", "section": "🐛 Bug Fixes" },
|
|
{ "type": "perf", "section": "⚡ Performance" },
|
|
{ "type": "refactor", "section": "♻️ Refactors" },
|
|
{ "type": "docs", "section": "📚 Documentation", "hidden": true },
|
|
{ "type": "chore", "section": "🧰 Maintenance", "hidden": true },
|
|
{ "type": "ci", "section": "🔧 CI/CD", "hidden": true }
|
|
]
|
|
}
|
|
}],
|
|
["@semantic-release/npm", {
|
|
"npmPublish": false
|
|
}],
|
|
["@semantic-release/github", {
|
|
"successComment": false,
|
|
"failTitle": false
|
|
}]
|
|
]
|
|
}
|