71 lines
2.0 KiB
JSON
71 lines
2.0 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": "revert", "release": "patch" },
|
|
{ "type": "docs", "release": "patch" },
|
|
{ "type": "chore", "release": false },
|
|
{ "type": "refactor", "release": "patch" },
|
|
{ "type": "test", "release": false },
|
|
{ "type": "build", "release": false },
|
|
{ "type": "ci", "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": "docs", "section": "Documentation" },
|
|
{ "type": "refactor", "section": "Code Refactoring" },
|
|
{ "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"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/npm",
|
|
{
|
|
"npmPublish": true,
|
|
"pkgRoot": "."
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/git",
|
|
{
|
|
"assets": ["package.json", "package-lock.json", "CHANGELOG.md"],
|
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/github",
|
|
{
|
|
"failComment": false,
|
|
"failTitle": false
|
|
}
|
|
]
|
|
]
|
|
}
|