61 lines
1.9 KiB
Plaintext
61 lines
1.9 KiB
Plaintext
{
|
|
"branches": ["main"],
|
|
"plugins": [
|
|
[
|
|
"@semantic-release/commit-analyzer",
|
|
{
|
|
"releaseRules": [
|
|
{ "type": "fix", "release": "patch" },
|
|
{ "type": "feat", "release": "minor" },
|
|
{ "type": "bump", "release": "patch" },
|
|
{ "type": "perf", "release": "patch" },
|
|
{ "type": "build", "scope": "Needs bump", "release": "patch" }
|
|
]
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/release-notes-generator",
|
|
{
|
|
"preset": "conventionalcommits",
|
|
"presetConfig": {
|
|
"types": [
|
|
{ "type": "fix", "section": "🐛 Bug Fixes", "hidden": false },
|
|
{ "type": "feat", "section": "✨ New Features", "hidden": false },
|
|
{ "type": "bump", "section": "🚀 Updated App Support", "hidden": false },
|
|
{ "type": "perf", "section": "🔧 Improvements", "hidden": false },
|
|
{ "type": "build", "hidden": true }
|
|
]
|
|
}
|
|
}
|
|
],
|
|
[
|
|
"./.gitea/scripts/morphe-release.cjs",
|
|
{
|
|
"changelogFile": "CHANGELOG.md",
|
|
"releaseJsonPath": "patches-bundle.json",
|
|
"assetDirectory": "patches/build/libs"
|
|
}
|
|
],
|
|
"gradle-semantic-release-plugin",
|
|
[
|
|
"@semantic-release/exec",
|
|
{
|
|
"prepareCmd": "./gradlew generatePatchesList && jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json && python3 .gitea/scripts/generate_patches_readme.py \"$GITEA_URL\" \"$GITEA_REPOSITORY\" \"$GITEA_REF_NAME\" patches-list.json README.md"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/git",
|
|
{
|
|
"assets": [
|
|
"CHANGELOG.md",
|
|
"gradle.properties",
|
|
"patches-bundle.json",
|
|
"patches-list.json",
|
|
"README.md"
|
|
],
|
|
"message": "chore: Release v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
}
|
|
]
|
|
]
|
|
}
|