diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..be56e3d --- /dev/null +++ b/.releaserc.json @@ -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}" + } + ] + ] +} \ No newline at end of file