diff --git a/package.json b/package.json index 04d0f17..bd75b09 100644 --- a/package.json +++ b/package.json @@ -47,15 +47,7 @@ "husky": "^8.0.3", "inquirer": "^8.2.5", "moment": "^2.30.1", - "standard-version": "^9.5.0", "vitepress": "1.0.0", "vue-router": "^4.2.2" - }, - "standard-version": { - "skip": { - "changelog": true, - "tag": false, - "commit": true - } } } diff --git a/utils/gitCommit.js b/utils/gitCommit.js index bdc3e3a..7820bce 100644 --- a/utils/gitCommit.js +++ b/utils/gitCommit.js @@ -6,15 +6,15 @@ const updatedVersion = require("./updatedVersion").updatedVersion // 先获取下个 版本号 const nextVersion = generateVersion(pkg.version) +// 更新项目的版本号 +updatedVersion(pkg.version) + +// 提交代码 let gitAddMsg = shell.exec('git add .') if (gitAddMsg.code !== 0) { console.error(gitAddMsg.stderr) } -// 更新项目的版本号 -updatedVersion(pkg.version) - -// 提交代码 let gitCommitMsg = shell.exec(`git commit -m "chore(release): ${nextVersion}"`) if (gitCommitMsg.code !== 0) { console.error(gitCommitMsg.stderr)