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

16
.gitignore vendored
View File

@@ -3,7 +3,7 @@ docker-compose.yml
frontend/.tanstack/
frontend/.output/
frontend/.nitro/
scripts/releases
scripts/releases/
# ---> Go
# If you prefer the allow list template instead of the deny list, see community template:
@@ -32,20 +32,6 @@ go.work.sum
# env file
.env
# But not these files...
!/.gitignore
!*.go
!go.sum
!go.mod
!README.md
!LICENSE
# !Makefile
# ...even if they are in subdirectories
!*/
# ---> Node
# Logs

View File

@@ -13,5 +13,5 @@
],
"commitUrlFormat": "https://git.tuffraid.net/cowch/logistics_support_tool/commits/{{hash}}",
"compareUrlFormat": "https://git.tuffraid.net/cowch/logistics_support_tool/compare/{{previousTag}}...{{currentTag}}",
"header": "# All changes to lst are shown below.\n"
"header": "# All changes to lst are shown below.\nReleases are combined zip of backend and frontend."
}

2285
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,11 +6,12 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"backend": "cd backend && go run .",
"docker:front":"docker build -t logistics_support_tool:frontend-latest -f frontend/Dockerfile ./frontend",
"docker:back":"docker build -t logistics_support_tool:backend-latest -f backend/Dockerfile ./backend",
"docker:front": "docker build -t logistics_support_tool:frontend-latest -f frontend/Dockerfile ./frontend",
"docker:back": "docker build -t logistics_support_tool:backend-latest -f backend/Dockerfile ./backend",
"docker": "powershell -File ./scripts/dockerBuild.ps1",
"release":"powershell -File ./scripts/release.ps1",
"commit":"cz"
"release:createZip": "powershell -File ./scripts/release.ps1",
"release": "release-it",
"commit": "cz"
},
"repository": {
"type": "git",
@@ -22,6 +23,7 @@
"type": "module",
"devDependencies": {
"cz-conventional-changelog": "^3.3.0",
"release-it": "^19.0.3",
"standard-version": "^9.5.0"
},
"config": {

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"
}
}