只需要一行命令,实现自动化版本控制
yarn add standard-version --save-dev
yarn add commitizen --save-dev
yarn add cz-conventional-changelog --save-dev
yarn add conventional-changelog-cli --save-dev
standard-verion https://github.com/conventional-changelog/standard-version
使用 standard-version 之前,需要遵循 Conventional Commit Specifications 来进行标准化的 commit message 编写
因为 standard-version 是基于 commit 类型来更新版本号的
- feature 会更新 minor,
- bug fix 会更新 patch,
- BREAKING CHANGES 会更新 major
https://www.jianshu.com/p/acfdd4ca0104
commitizen
使用Commitizen-规范你的commit message
https://www.jianshu.com/p/36d970a2b4da
commitizen
cz-conventional-changelog
cz-conventional-changelog用来规范提交信息
规范Git提交说明
https://github.com/commitizen/cz-conventional-changelog
https://www.cnblogs.com/mengfangui/p/12634845.html
https://blog.csdn.net/weixin_33890526/article/details/91393527
https://www.jianshu.com/p/8564d1281366