chore: добавляет конфигурацию semantic-release

This commit is contained in:
Maxim Slipenko 2023-09-24 11:49:47 +03:00
parent 4330225902
commit 4ae759a3de

91
.releaserc.json Normal file
View File

@ -0,0 +1,91 @@
{
"branches": [
"main"
],
"ci": false,
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "ESLint",
"releaseRules": [
{
"tag": "breaking",
"release": "major"
},
{
"tag": "chore",
"release": false
},
{
"tag": "ci",
"release": false
},
{
"tag": "docs",
"release": false
},
{
"tag": "feat",
"release": "minor"
},
{
"tag": "fix",
"release": "patch"
},
{
"tag": "refactor",
"release": "patch"
},
{
"tag": "security",
"release": "patch"
},
{
"tag": "style",
"release": "patch"
},
{
"tag": "test",
"release": false
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Новые функции"
},
{
"type": "fix",
"section": "Исправления"
}
]
},
"linkCompare": false,
"linkReferences": false
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}