fix(release): change to get the release to build then release stuff
This commit is contained in:
@@ -8,24 +8,22 @@
|
||||
"publish": false
|
||||
},
|
||||
"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}"
|
||||
|
||||
},
|
||||
"github": false,
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"preset": "conventionalcommits",
|
||||
"infile": "CHANGELOG.md",
|
||||
"config": ".versionrc.json"
|
||||
"config": ".versionrc.json",
|
||||
"changelogCommand": "conventional-changelog -p conventionalcommits -r 1"
|
||||
}
|
||||
},
|
||||
"gitea": {
|
||||
"host": "https://${GITEA_URL}",
|
||||
"tokenRef": "GITEA_TOKEN"
|
||||
},
|
||||
},
|
||||
|
||||
"files": [
|
||||
"package.json"
|
||||
]
|
||||
"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>
|
||||
|
||||
@@ -117,3 +116,6 @@
|
||||
* 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))
|
||||
* Update README.md ([e081c8f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/e081c8f))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -85,52 +85,7 @@ 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)"
|
||||
|
||||
switch ($choice) {
|
||||
'1' {
|
||||
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
|
||||
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
|
||||
@@ -156,21 +111,13 @@ while ($true) {
|
||||
|
||||
Write-Host "Fronend build finished successfully."
|
||||
Pop-Location
|
||||
npm run release:createZip
|
||||
npm run release
|
||||
Update-BuildNumber
|
||||
|
||||
Write-Host "Zipping up the release"
|
||||
npm run release:createZip
|
||||
break
|
||||
}
|
||||
'4' {
|
||||
Write-Host "Exiting script."
|
||||
exit 0
|
||||
}
|
||||
default {
|
||||
Write-Warning "Invalid choice, please enter 1, 2, 3, or 4."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user