.releaserc.json•3.83 kB
{
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
},
{
"type": "docs",
"release": false
},
{
"type": "style",
"release": false
},
{
"type": "chore",
"release": false
},
{
"type": "refactor",
"release": "patch"
},
{
"type": "test",
"release": false
},
{
"type": "build",
"release": false
},
{
"type": "ci",
"release": false
},
{
"scope": "no-release",
"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 Improvements"
},
{
"type": "revert",
"section": "⏪ Reverts"
},
{
"type": "refactor",
"section": "♻️ Code Refactoring"
},
{
"type": "docs",
"section": "📚 Documentation",
"hidden": true
},
{
"type": "style",
"section": "💎 Styles",
"hidden": true
},
{
"type": "chore",
"section": "🏡 Chore",
"hidden": true
},
{
"type": "test",
"section": "🧪 Tests",
"hidden": true
},
{
"type": "build",
"section": "🔨 Build System",
"hidden": true
},
{
"type": "ci",
"section": "👷 CI/CD",
"hidden": true
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Changelog\n\nAll notable changes to this project will be documented in this file."
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "echo 'Preparing release ${nextRelease.version}'"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/*.tar.gz",
"label": "Release archives"
},
{
"path": "dist/*.zip",
"label": "Release archives"
},
{
"path": "dist/checksums.txt",
"label": "Checksums"
}
],
"releasedLabels": [
"released on @${nextRelease.channel}"
]
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}