From 06af2bfb150ef6b777090892635ef50ca463b6d6 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Fri, 5 Sep 2025 12:51:36 +0800 Subject: [PATCH] Fix lint --- extra/beta/update-version.js | 18 ------------------ extra/update-version.js | 15 --------------- 2 files changed, 33 deletions(-) diff --git a/extra/beta/update-version.js b/extra/beta/update-version.js index bea7ef7a0..4af645e0e 100644 --- a/extra/beta/update-version.js +++ b/extra/beta/update-version.js @@ -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 diff --git a/extra/update-version.js b/extra/update-version.js index d3068bc63..9e4593446 100644 --- a/extra/update-version.js +++ b/extra/update-version.js @@ -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