diff --git a/script/checkVersion.cjs b/script/checkVersion.cjs index 29de7882..331932a8 100644 --- a/script/checkVersion.cjs +++ b/script/checkVersion.cjs @@ -11,5 +11,5 @@ if (currentVersion === targetVersion) { let packageJson = JSON.parse(fs.readFileSync("./package.json")); packageJson.version = targetVersion; fs.writeFileSync("./package.json", JSON.stringify(packageJson)); - fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.mail\"\n git config --global user.name \"Version\"\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") + fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.mail\"\n git config --global user.name \"Version\"\ngit branch -M main\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") }