Compare commits
4 Commits
2a9b571b7a
...
587f1eb3a2
| Author | SHA1 | Date | |
|---|---|---|---|
| 587f1eb3a2 | |||
| 508aab3417 | |||
| 18aa9e7670 | |||
| 8141c6ab69 |
@@ -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))
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user