From fad3dbf4cdf60892681553431ef52815d1083ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Tue, 16 Apr 2024 13:56:07 +0800 Subject: [PATCH] fix --- script/checkVersion.cjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/script/checkVersion.cjs b/script/checkVersion.cjs index 4fd35712..2cf13cc1 100644 --- a/script/checkVersion.cjs +++ b/script/checkVersion.cjs @@ -8,9 +8,6 @@ console.log("[NapCat] [CheckVersion] currentVersion:", currentVersion, " targetV if (currentVersion === targetVersion) { fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"") } else { - let packageJson = JSON.parse(fs.readFileSync("./package.json")); - packageJson.version = targetVersion; - fs.writeFileSync("./package.json", JSON.stringify(packageJson)); let runscript = "sed -i 's/\"version\": \"" + currentVersion + "\"/\"version\": \"" + targetVersion + "\"/g' package.json"; fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.nanaeo.cn\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") }