This commit is contained in:
Louis Lam
2025-09-05 12:51:36 +08:00
parent 6a62ee2856
commit 06af2bfb15
2 changed files with 0 additions and 33 deletions

View File

@@ -24,13 +24,8 @@ if (! exists) {
// Also update package-lock.json
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
childProcess.spawnSync(npm, [ "install" ]);
commit(version);
// As the master branch is protected now, we do not create tags here
// Instead, we create the tag manually along with the GitHub release
// tag(version);
} else {
console.log("version tag exists, please delete the tag or use another tag");
process.exit(1);
@@ -57,19 +52,6 @@ function commit(version) {
console.log(res.stdout.toString().trim());
}
/**
* Create a tag with the specified version
* @param {string} version Tag to create
* @returns {void}
*/
function tag(version) {
let res = childProcess.spawnSync("git", [ "tag", version ]);
console.log(res.stdout.toString().trim());
res = childProcess.spawnSync("git", [ "push", "origin", version ]);
console.log(res.stdout.toString().trim());
}
/**
* Check if a tag exists for the specified version
* @param {string} version Version to check

View File

@@ -28,13 +28,8 @@ if (! exists) {
// Also update package-lock.json
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
childProcess.spawnSync(npm, [ "install" ]);
commit(newVersion);
// As the master branch is protected now, we do not create tags here
// Instead, we create the tag manually along with the GitHub release
// tag(version);
} else {
console.log("version exists");
}
@@ -57,16 +52,6 @@ function commit(version) {
}
}
/**
* Create a tag with the specified version
* @param {string} version Tag to create
* @returns {void}
*/
function tag(version) {
let res = childProcess.spawnSync("git", [ "tag", version ]);
console.log(res.stdout.toString().trim());
}
/**
* Check if a tag exists for the specified version
* @param {string} version Version to check