fix(relrease): maybe finally got it
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,10 +1,9 @@
|
|||||||
# Changelog
|
## <small>0.0.2-alpha.5 (2025-07-12)</small>
|
||||||
|
|
||||||
## [0.0.2-alpha.6](https://git.tuffraid.net/cowch/logistics_support_tool/compare/v0.0.2-alpha.5...v0.0.2-alpha.6) (2025-07-12)
|
* chore(release): v0.0.2-alpha.5 ([6779d1c](https://git.tuffraid.net/cowch/logistics_support_tool/commits/6779d1c))
|
||||||
|
* fix(release): more fixes ([65873bd](https://git.tuffraid.net/cowch/logistics_support_tool/commits/65873bd))
|
||||||
|
|
||||||
### Bug Fixes
|
|
||||||
|
|
||||||
* **release fixes:** more fixes ([6fc69fc](https://git.tuffraid.net/cowch/logistics_support_tool/commit/6fc69fc6bcbda7f978dbd332ef23ef0501653c50))
|
|
||||||
|
|
||||||
## <small>0.0.2-alpha.4 (2025-07-12)</small>
|
## <small>0.0.2-alpha.4 (2025-07-12)</small>
|
||||||
|
|
||||||
@@ -81,3 +80,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))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,17 @@ if (!version) {
|
|||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resolve the directory of the current script
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
|
// Absolute path to BUILD_NUMBER
|
||||||
|
const buildNumberPath = path.resolve(__dirname, '../BUILD_NUMBER');
|
||||||
|
|
||||||
// Load build number from BUILD_NUMBER file
|
// Load build number from BUILD_NUMBER file
|
||||||
let buildNumber = '0';
|
let buildNumber = '0';
|
||||||
try {
|
try {
|
||||||
rawBuild = (await fs.readFile('BUILD_NUMBER', '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('-');
|
||||||
|
|||||||
Reference in New Issue
Block a user