Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh authored Dec 27, 2024
1 parent 6ba8814 commit 799e151
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ function sha1(input) {

function generateTags(branch, version, moduleType, modulesVersions) {
const buildHash = sha1(`${branch}-${version}-${modulesVersions.join('-')}`);
const modulePostfix = moduleType === "js" ? "-js" : "";
let modulePostfix = "";
if (moduleType === "js") {
modulePostfix = "-js";
} else if(moduleTpye === "jsv2") {
modulePostfix = "-jsv2";
} else if(moduleTpye === "csharp") {
modulePostfix = "-csharp";
}
const tags = [
version + '-' + modulePostfix + buildHash, // 15.4-dev28-ae27872adf6123e023f89a650a6b3c7b96e85fca
version + modulePostfix, // 15.4-dev28
Expand Down Expand Up @@ -143,4 +150,4 @@ async function run() {
}
}

run();
run();

0 comments on commit 799e151

Please sign in to comment.