2 Commits

Author SHA1 Message Date
f7da816a2c chore(release): v0.0.2-alpha.8 2025-07-12 16:02:21 -05:00
fdf5e257c6 build(build): linked everything together 2025-07-12 16:01:51 -05:00
5 changed files with 55 additions and 48 deletions

View File

@@ -1,5 +1,7 @@
# Changelog # Changelog
## [0.0.2-alpha.8](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.7...v0.0.2-alpha.8) (2025-07-12)
## [0.0.2-alpha.7](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.6...v0.0.2-alpha.7) (2025-07-12) ## [0.0.2-alpha.7](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.6...v0.0.2-alpha.7) (2025-07-12)
### Bug Fixes ### Bug Fixes

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "logistics_support_tool", "name": "logistics_support_tool",
"version": "0.0.2-alpha.7", "version": "0.0.2-alpha.8",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "logistics_support_tool", "name": "logistics_support_tool",
"version": "0.0.2-alpha.7", "version": "0.0.2-alpha.8",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"conventional-changelog": "^7.1.1", "conventional-changelog": "^7.1.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "logistics_support_tool", "name": "logistics_support_tool",
"version": "0.0.2-alpha.7", "version": "0.0.2-alpha.8",
"description": "This is the new logisitcs support tool", "description": "This is the new logisitcs support tool",
"private": true, "private": true,
"main": "index.js", "main": "index.js",
@@ -13,7 +13,7 @@
"docker": "powershell -File ./scripts/dockerBuild.ps1", "docker": "powershell -File ./scripts/dockerBuild.ps1",
"release:createZip": "powershell -File ./scripts/release.ps1", "release:createZip": "powershell -File ./scripts/release.ps1",
"release:gitea": "node ./scripts/create-gitea-release.js", "release:gitea": "node ./scripts/create-gitea-release.js",
"release": "release-it --verbose --preRelease=alpha", "release": "release-it --verbose --non-interactive --preRelease=alpha",
"commit": "cz" "commit": "cz"
}, },
"repository": { "repository": {

View File

@@ -109,6 +109,7 @@ while ($true) {
Pop-Location Pop-Location
npm run release:createZip npm run release:createZip
npm run release
Update-BuildNumber Update-BuildNumber
break break
} }
@@ -125,6 +126,7 @@ while ($true) {
Write-Host "Fronend build finished successfully." Write-Host "Fronend build finished successfully."
Pop-Location Pop-Location
npm run release:createZip npm run release:createZip
npm run release
Update-BuildNumber Update-BuildNumber
break break
} }
@@ -145,6 +147,7 @@ while ($true) {
Push-Location $rootDir/frontend Push-Location $rootDir/frontend
Write-Host "Building the frontend" Write-Host "Building the frontend"
npm run build npm run build
if ($LASTEXITCODE -ne 0) { if ($LASTEXITCODE -ne 0) {
Write-Warning "Fronend build failed!" Write-Warning "Fronend build failed!"
Pop-Location Pop-Location
@@ -154,6 +157,7 @@ while ($true) {
Write-Host "Fronend build finished successfully." Write-Host "Fronend build finished successfully."
Pop-Location Pop-Location
npm run release:createZip npm run release:createZip
npm run release
Update-BuildNumber Update-BuildNumber
break break

View File

@@ -33,12 +33,13 @@ try {
rawBuild = (await fs.readFile(buildNumberPath, "utf8")).trim(); rawBuild = (await fs.readFile(buildNumberPath, "utf8")).trim();
console.log("Raw build", rawBuild); console.log("Raw build", rawBuild);
if (rawBuild) { if (rawBuild) {
const [numPart, namePart] = rawBuild.split("-"); // const [numPart, namePart] = rawBuild.split("-");
const num = parseInt(numPart, 10); // const num = parseInt(numPart, 10);
if (!isNaN(num) && namePart) { // if (!isNaN(num) && namePart) {
buildNumber = `${num - 1}-${namePart}`; // buildNumber = `${num - 1}-${namePart}`;
} // }
buildNumber = rawBuild;
} }
} catch { } catch {
console.warn("BUILD_NUMBER file not found, defaulting to 0"); console.warn("BUILD_NUMBER file not found, defaulting to 0");