4 Commits

5 changed files with 23 additions and 6 deletions

View File

@@ -1,4 +1,11 @@
## 1.0.0 (2025-07-12)
## <small>0.0.1-alpha.1 (2025-07-12)</small>
* refactor(versionrc): alloed project changes to show in the changelog ([2a9b571](https://git.tuffraid.net/cowch/logistics_support_tool/commits/2a9b571))
* ci(builds): added better logic to building ([320968f](https://git.tuffraid.net/cowch/logistics_support_tool/commits/320968f))
## <small>v0.0.1-alpha-1 (2025-07-12)</small>
* fix(releases): spawn fixes to overcome npx and powershell ([eed0119](https://git.tuffraid.net/cowch/logistics_support_tool/commits/eed0119))
* refactor(releases): refactoring to get the actual release and changelog to show ([a20d377](https://git.tuffraid.net/cowch/logistics_support_tool/commits/a20d377))

View File

@@ -1,6 +1,6 @@
{
"name": "logistics_support_tool",
"version": "0.0.1.alpha.1",
"version": "0.0.1-alpha.1",
"description": "This is the new logisitcs support tool",
"main": "index.js",
"scripts": {
@@ -12,6 +12,7 @@
"docker": "powershell -File ./scripts/dockerBuild.ps1",
"release:createZip": "powershell -File ./scripts/release.ps1",
"release:gitea": "node ./scripts/create-gitea-release.js",
"release":"release-it",
"commit": "cz"
},
"repository": {

View File

@@ -7,7 +7,7 @@
"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}"
"after:release": "node ./scripts/create-gitea-release.js ${version}"
},
"github": false,
"plugins": {

View File

@@ -16,8 +16,15 @@ if (!version) {
// Load build number from BUILD_NUMBER file
let buildNumber = '0';
try {
buildNumber = (await fs.readFile('BUILD_NUMBER', 'utf8')).trim();
if (!buildNumber) buildNumber = '0';
rawBuild = (await fs.readFile('BUILD_NUMBER', 'utf8')).trim();
if (rawBuild) {
const [numPart, namePart] = rawBuild.split('-');
const num = parseInt(numPart, 10);
if (!isNaN(num) && namePart) {
buildNumber = `${num - 1}-${namePart}`;
}
}
} catch {
console.warn('BUILD_NUMBER file not found, defaulting to 0');
}

View File

@@ -72,7 +72,9 @@ $filesToInclude = @(
"frontend\.tanstack",
"frontend\.output",
"frontend\public",
"package.json"
"package.json",
"CHANGELOG.md",
"README.md"
)
Compress-Archive -Path $filesToInclude -DestinationPath $zipPath