Release 2.0.0-beta.4 (#6104)

This commit is contained in:
Louis Lam
2025-09-05 12:55:03 +08:00
committed by GitHub
parent 0e30c43a80
commit c6048d56b4
6 changed files with 22 additions and 30 deletions

View File

@@ -28,9 +28,7 @@ if (! exists) {
// Also update package-lock.json
const npm = /^win/.test(process.platform) ? "npm.cmd" : "npm";
childProcess.spawnSync(npm, [ "install" ]);
commit(newVersion);
tag(newVersion);
} else {
console.log("version exists");
@@ -54,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