Skip to content

Commit 6603e7f

Browse files
authored
fix: due to GitHub action changes build numbers were incorrect (#54)
1 parent cc074f5 commit 6603e7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/prepack.mas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ yamlData.buildVersion = distYamlData?.buildVersion || yamlData?.buildVersion ||
1414
let newBuildVersion = yamlData.buildVersion + 1
1515

1616
if (process.env.GITHUB_RUN_NUMBER) {
17-
newBuildVersion = parseInt(process.env.GITHUB_RUN_NUMBER)
17+
newBuildVersion = parseInt(process.env.GITHUB_RUN_NUMBER) + 21 // 21 being the offset of builds due to the previous build system
1818

1919
console.log(' • Setting build version to', newBuildVersion)
2020
} else {

scripts/prepack.win.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ yamlData.buildNumber = distYamlData?.buildNumber || yamlData?.buildNumber || 0
1414
let newBuildNumber = yamlData.buildVersion + 1
1515

1616
if (process.env.GITHUB_RUN_NUMBER) {
17-
newBuildNumber = parseInt(process.env.GITHUB_RUN_NUMBER)
17+
newBuildNumber = parseInt(process.env.GITHUB_RUN_NUMBER) + 21 // 21 being the offset of builds due to the previous build system
1818

1919
console.log(' • Setting build number to', newBuildNumber)
2020
} else {

0 commit comments

Comments
 (0)