fix(release): change to get the release to build then release stuff
This commit is contained in:
@@ -1,31 +1,29 @@
|
|||||||
{
|
{
|
||||||
"git": {
|
"git": {
|
||||||
"commitMessage": "chore(release): v${version}",
|
"commitMessage": "chore(release): v${version}",
|
||||||
"tagName": "v${version}",
|
"tagName": "v${version}",
|
||||||
"requireCleanWorkingDir": true
|
"requireCleanWorkingDir": true
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"publish": false
|
"publish": false
|
||||||
},
|
},
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"after:bump": "echo Version bumped to ${version}",
|
"before:bump": "node ./scripts/build-zip.js ${version}",
|
||||||
"after:release": "node ./scripts/create-gitea-release.js ${version}"
|
"after:release": "node ./scripts/create-gitea-release.js ${version}"
|
||||||
|
},
|
||||||
|
"github": false,
|
||||||
|
"plugins": {
|
||||||
|
"@release-it/conventional-changelog": {
|
||||||
|
"preset": "conventionalcommits",
|
||||||
|
"infile": "CHANGELOG.md",
|
||||||
|
"config": ".versionrc.json",
|
||||||
|
"changelogCommand": "conventional-changelog -p conventionalcommits -r 1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitea": {
|
||||||
|
"host": "https://${GITEA_URL}",
|
||||||
|
"tokenRef": "GITEA_TOKEN"
|
||||||
|
},
|
||||||
|
|
||||||
},
|
"files": ["package.json"]
|
||||||
"github": false,
|
|
||||||
"plugins": {
|
|
||||||
"@release-it/conventional-changelog": {
|
|
||||||
"preset": "conventionalcommits",
|
|
||||||
"infile": "CHANGELOG.md",
|
|
||||||
"config": ".versionrc.json"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gitea": {
|
|
||||||
"host": "https://${GITEA_URL}",
|
|
||||||
"tokenRef": "GITEA_TOKEN"
|
|
||||||
},
|
|
||||||
|
|
||||||
"files": [
|
|
||||||
"package.json"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,10 +1,9 @@
|
|||||||
# Changelog
|
## <small>0.0.2-alpha.10 (2025-07-12)</small>
|
||||||
|
|
||||||
## [0.0.2-alpha.11](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.10...v0.0.2-alpha.11) (2025-07-12)
|
* chore(release): v0.0.2-alpha.10 ([36b1df7](https://git.tuffraid.net/cowch/logistics_support_tool/commits/36b1df7))
|
||||||
|
* fix(release): error in function ([dc4beb2](https://git.tuffraid.net/cowch/logistics_support_tool/commits/dc4beb2))
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **release:** var not defined ([a282940](https://git.tuffraid.net/cowch/logistics_support_tool/commit/a282940d9b1334743af31b96fbb3fd8228ee290a))
|
|
||||||
|
|
||||||
## <small>0.0.2-alpha.9 (2025-07-12)</small>
|
## <small>0.0.2-alpha.9 (2025-07-12)</small>
|
||||||
|
|
||||||
@@ -117,3 +116,6 @@
|
|||||||
* feat(starter): intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b370cb1))
|
* feat(starter): intial starter release ([b370cb1](https://git.tuffraid.net/cowch/logistics_support_tool/commits/b370cb1))
|
||||||
* Initial commit ([e4d3fc9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e4d3fc9))
|
* Initial commit ([e4d3fc9](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e4d3fc9))
|
||||||
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
|
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -85,92 +85,39 @@ function Update-BuildNumber {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while ($true) {
|
|
||||||
Write-Host "Select build option:"
|
|
||||||
Write-Host "1) Backend"
|
|
||||||
Write-Host "2) Frontend"
|
|
||||||
Write-Host "3) All"
|
|
||||||
Write-Host "4) Exit"
|
|
||||||
|
|
||||||
$choice = Read-Host "Enter your choice (1-4)"
|
Push-Location $rootDir/backend
|
||||||
|
Write-Host "Building the app"
|
||||||
switch ($choice) {
|
go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
|
||||||
'1' {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Push-Location $rootDir/backend
|
Write-Warning "Backend build failed!"
|
||||||
Write-Host "Building the app"
|
Pop-Location
|
||||||
go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
|
break
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Warning "Backend build failed!"
|
|
||||||
Pop-Location
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Backend build finished successfully."
|
|
||||||
|
|
||||||
Pop-Location
|
|
||||||
npm run release:createZip
|
|
||||||
npm run release
|
|
||||||
Update-BuildNumber
|
|
||||||
break
|
|
||||||
}
|
|
||||||
'2' {
|
|
||||||
Push-Location $rootDir/frontend
|
|
||||||
Write-Host "Building the frontend"
|
|
||||||
npm run build
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Warning "Fronend build failed!"
|
|
||||||
Pop-Location
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Fronend build finished successfully."
|
|
||||||
Pop-Location
|
|
||||||
npm run release:createZip
|
|
||||||
npm run release
|
|
||||||
Update-BuildNumber
|
|
||||||
break
|
|
||||||
}
|
|
||||||
'3' {
|
|
||||||
Push-Location $rootDir/backend
|
|
||||||
Write-Host "Building the app"
|
|
||||||
go build -ldflags "-X main.version=$($version)-$($initialBuildValue)" -o lst_backend.exe ./main.go
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Warning "Backend build failed!"
|
|
||||||
Pop-Location
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Backend build finished successfully."
|
|
||||||
|
|
||||||
Pop-Location
|
|
||||||
|
|
||||||
Push-Location $rootDir/frontend
|
|
||||||
Write-Host "Building the frontend"
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
|
||||||
Write-Warning "Fronend build failed!"
|
|
||||||
Pop-Location
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Host "Fronend build finished successfully."
|
|
||||||
Pop-Location
|
|
||||||
npm run release:createZip
|
|
||||||
npm run release
|
|
||||||
Update-BuildNumber
|
|
||||||
|
|
||||||
break
|
|
||||||
}
|
|
||||||
'4' {
|
|
||||||
Write-Host "Exiting script."
|
|
||||||
exit 0
|
|
||||||
}
|
|
||||||
default {
|
|
||||||
Write-Warning "Invalid choice, please enter 1, 2, 3, or 4."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Write-Host "Backend build finished successfully."
|
||||||
|
|
||||||
|
Pop-Location
|
||||||
|
|
||||||
|
Push-Location $rootDir/frontend
|
||||||
|
Write-Host "Building the frontend"
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Warning "Fronend build failed!"
|
||||||
|
Pop-Location
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Fronend build finished successfully."
|
||||||
|
Pop-Location
|
||||||
|
Update-BuildNumber
|
||||||
|
|
||||||
|
Write-Host "Zipping up the release"
|
||||||
|
npm run release:createZip
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user