conventional-changelog-cli来管理版本迭代的changelog

489 阅读1分钟

安装 conventional-changelog-cli依赖

yarn add conventional-changelog-cli --dev

package.jsonscript 配置如下:

"scripts": {
   "changelog":"conventional-changelog -p -i CHANGELOG.md -s",
 },

跑命令行

yarn changelog

可以在CHANGELOG.md中查看changelog 参考文档 如何规范你的commit