ci(releases): added in release it to add to the build process

This commit is contained in:
2025-07-12 13:08:04 -05:00
parent 0b17faf618
commit 1b07f5628a
5 changed files with 2312 additions and 25 deletions

24
release-it.json Normal file
View File

@@ -0,0 +1,24 @@
{
"git": {
"commitMessage": "chore(release): v${version}",
"tagName": "v${version}",
"requireCleanWorkingDir": true
},
"npm": false,
"hooks": {
"after:bump": "echo Version bumped to ${version}",
"after:release": "curl -X POST -H \"Authorization: token ${GITEA_TOKEN}\" -F name=release-${version}.zip -F attachment=@releases/release-${version}.zip https://${GITEA_URL}/api/v1/repos/${GITEA_USERNAME}/${GITEA_REPO}/releases/assets?tag=v${version}"
},
"github": false,
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md",
"config": ".versionrc.json"
}
},
"gitea": {
"host": "https://${GITEA_URL}",
"tokenRef": "GITEA_TOKEN"
}
}