fix(release): checking the build file failes but not sure why

This commit is contained in:
2025-07-12 16:05:33 -05:00
parent f7da816a2c
commit f429bd43ab
2 changed files with 15 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ const buildNumberPath = path.resolve(__dirname, "../BUILD_NUMBER");
// Load build number from BUILD_NUMBER file
let buildNumber = "0";
try {
rawBuild = (await fs.readFile(buildNumberPath, "utf8")).trim();
rawBuild = await fs.readFile(buildNumberPath, "utf8").trim();
console.log("Raw build", rawBuild);
if (rawBuild) {
// const [numPart, namePart] = rawBuild.split("-");
@@ -41,7 +41,8 @@ try {
// }
buildNumber = rawBuild;
}
} catch {
} catch (e) {
console.log(e);
console.warn("BUILD_NUMBER file not found, defaulting to 0");
}