From a6f41fe9b62ada92ca86c0f96b3c8c56bc1850bc Mon Sep 17 00:00:00 2001 From: Soybean <honghuangdc@gmail.com> Date: Sun, 4 Jun 2023 02:14:56 +0800 Subject: [PATCH] fix(projects): fix generate changelog timing --- CHANGELOG.md | 442 +---------------------------------------- package.json | 3 +- src/changelog/index.ts | 4 +- src/index.ts | 4 +- 4 files changed, 10 insertions(+), 443 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b97a52e..17519dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,456 +1,24 @@ # Changelog -## [v0.4.1](https://github.com/soybeanjs/cli/compare/v0.4.0...v0.4.1)(2023-06-04) - -### 🐞 Bug Fixes - -- **projects**: Fix repository url - by @soybeanjs [<samp>(f6515)</samp>](https://github.com/soybeanjs/cli/commit/f6515ec) - -### 🏡 Chore - -- Release v0.4.1 - by @soybeanjs [<samp>(4f224)</samp>](https://github.com/soybeanjs/cli/commit/4f224ff) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.4.0](https://github.com/soybeanjs/cli/compare/v0.3.2...v0.4.0)(2023-06-04) +## [main](https://github.com/soybeanjs/cli/compare/v0.4.1...main)(2023-06-04) ### 🚀 Features -- **projects**: Add eslint-prettier and lint-staged command - by @soybeanjs [<samp>(27330)</samp>](https://github.com/soybeanjs/cli/commit/2733099) - -### 📖 Documentation - -- **projects**: CHANGELOG.md - by @soybeanjs [<samp>(26ad9)</samp>](https://github.com/soybeanjs/cli/commit/26ad987) - -### 🏡 Chore - -- Release v0.4.0 - by @soybeanjs [<samp>(74a68)</samp>](https://github.com/soybeanjs/cli/commit/74a6831) -- **projects**: Update repository url - by @soybeanjs [<samp>(53f2f)</samp>](https://github.com/soybeanjs/cli/commit/53f2f21) -- **projects**: Use cac replace commander - by @soybeanjs [<samp>(1163e)</samp>](https://github.com/soybeanjs/cli/commit/1163ef7) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.3.2](https://github.com/soybeanjs/cli/compare/v0.3.1...v0.3.2)(2023-06-04) - -### 📖 Documentation - -- **projects**: CHANGELOG.md - by @soybeanjs [<samp>(f05a7)</samp>](https://github.com/soybeanjs/cli/commit/f05a724) -- **projects**: Update README.md - by @soybeanjs [<samp>(5b293)</samp>](https://github.com/soybeanjs/cli/commit/5b293d3) - -### 🏡 Chore - -- Release v0.3.2 - by @soybeanjs [<samp>(ee5c6)</samp>](https://github.com/soybeanjs/cli/commit/ee5c6ed) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.3.1](https://github.com/soybeanjs/cli/compare/v0.3.0...v0.3.1)(2023-06-04) - -### 📖 Documentation - -- **projects**: CHANGELOG.md - by @soybeanjs [<samp>(86d2a)</samp>](https://github.com/soybeanjs/cli/commit/86d2ac1) - -### 🏡 Chore - -- Release v0.3.1 - by @soybeanjs [<samp>(14952)</samp>](https://github.com/soybeanjs/cli/commit/14952b4) -- **deps**: Update deps - by @soybeanjs [<samp>(0a8d0)</samp>](https://github.com/soybeanjs/cli/commit/0a8d0aa) -- **projects**: Update prettier write files - by @soybeanjs [<samp>(0a2cc)</samp>](https://github.com/soybeanjs/cli/commit/0a2ccd4) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.3.0](https://github.com/soybeanjs/cli/compare/v0.2.12...v0.3.0)(2023-06-04) - -### 🏡 Chore - -- Release v0.3.0 - by @soybeanjs [<samp>(9090b)</samp>](https://github.com/soybeanjs/cli/commit/9090bd5) -- **projects**: Remove release command - by @soybeanjs [<samp>(39969)</samp>](https://github.com/soybeanjs/cli/commit/3996991) -- **projects**: Use unbuild replace tsup - by @soybeanjs [<samp>(042b7)</samp>](https://github.com/soybeanjs/cli/commit/042b701) -- **projects**: Add update-version script - by @soybeanjs [<samp>(8d78d)</samp>](https://github.com/soybeanjs/cli/commit/8d78d27) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.12](https://github.com/soybeanjs/cli/compare/v0.2.11...v0.2.12)(2023-06-04) - -### 🏡 Chore - -- **projects**: Add githublogen replace changelogithub - by @soybeanjs [<samp>(908bc)</samp>](https://github.com/soybeanjs/cli/commit/908bcd4) -- **projects**: Update lint-staged config - by @soybeanjs [<samp>(45607)</samp>](https://github.com/soybeanjs/cli/commit/456077a) -- **release**: V0.2.12 - by @soybeanjs [<samp>(84370)</samp>](https://github.com/soybeanjs/cli/commit/843703e) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.11](https://github.com/soybeanjs/cli/compare/v0.2.10...v0.2.11)(2023-06-04) - -### 🏡 Chore - -- **projects**: Update changelogithub config - by @soybeanjs [<samp>(c053a)</samp>](https://github.com/soybeanjs/cli/commit/c053aa7) -- **release**: V0.2.11 - by @soybeanjs [<samp>(dc223)</samp>](https://github.com/soybeanjs/cli/commit/dc22399) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.10](https://github.com/soybeanjs/cli/compare/v0.2.9...v0.2.10)(2023-06-04) - -### 📖 Documentation - -- **projects**: Update README.md - by @soybeanjs [<samp>(4daf5)</samp>](https://github.com/soybeanjs/cli/commit/4daf5e2) - -### 🏡 Chore - -- **release**: V0.2.10 - by @soybeanjs [<samp>(51a79)</samp>](https://github.com/soybeanjs/cli/commit/51a799e) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.9](https://github.com/soybeanjs/cli/compare/v0.2.8...v0.2.9)(2023-06-04) - -### 🏡 Chore - -- **projects**: Fix release script - by @soybeanjs [<samp>(52bfe)</samp>](https://github.com/soybeanjs/cli/commit/52bfe9a) -- **release**: V0.2.9 - by @soybeanjs [<samp>(4bc57)</samp>](https://github.com/soybeanjs/cli/commit/4bc578b) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.8](https://github.com/soybeanjs/cli/compare/v0.2.7...v0.2.8)(2023-06-04) - -### 🏡 Chore - -- **projects**: Update release script - by @soybeanjs [<samp>(d39ee)</samp>](https://github.com/soybeanjs/cli/commit/d39ee91) -- **release**: V0.2.8 - by @soybeanjs [<samp>(af12d)</samp>](https://github.com/soybeanjs/cli/commit/af12d78) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.7](https://github.com/soybeanjs/cli/compare/v0.2.6...v0.2.7)(2023-06-04) - -### 🏡 Chore - -- **projects**: Add release command status - by @soybeanjs [<samp>(d9ee4)</samp>](https://github.com/soybeanjs/cli/commit/d9ee450) -- **release**: V0.2.7 - by @soybeanjs [<samp>(c057a)</samp>](https://github.com/soybeanjs/cli/commit/c057aad) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.6](https://github.com/soybeanjs/cli/compare/v0.2.5...v0.2.6)(2023-06-04) - -### 🚀 Features - -- **projects**: Add release command - by @soybeanjs [<samp>(1a4a6)</samp>](https://github.com/soybeanjs/cli/commit/1a4a641) - -### 🏡 Chore - -- **release**: V0.2.6 - by @soybeanjs [<samp>(fa7ea)</samp>](https://github.com/soybeanjs/cli/commit/fa7ea00) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.5](https://github.com/soybeanjs/cli/compare/v0.2.4...v0.2.5)(2023-06-04) - -### 📖 Documentation - -- **projects**: Update README.md [更新README.md] - by @soybeanjs [<samp>(a2b1b)</samp>](https://github.com/soybeanjs/cli/commit/a2b1b34) - -### 🏡 Chore - -- Release v0.2.5 - by @soybeanjs [<samp>(45884)</samp>](https://github.com/soybeanjs/cli/commit/45884c2) -- **projects**: Remove bumpp and conventional-changelog-cli [去除依赖bumpp和conventional-changelog-cli] - by @soybeanjs [<samp>(4bac6)</samp>](https://github.com/soybeanjs/cli/commit/4bac6d4) -- **projects**: Update package.json [更新package.json] - by @soybeanjs [<samp>(dd3e1)</samp>](https://github.com/soybeanjs/cli/commit/dd3e1f9) -- **projects**: Add bumpp - by @soybeanjs [<samp>(14c09)</samp>](https://github.com/soybeanjs/cli/commit/14c092e) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.4](https://github.com/soybeanjs/cli/compare/v0.2.3...v0.2.4)(2023-06-04) +- **projects**: Add changelog command - by @soybeanjs [<samp>(8bc95)</samp>](https://github.com/soybeanjs/cli/commit/8bc95c6) +- **projects**: Generate changelog by total tags - by @soybeanjs [<samp>(9ee85)</samp>](https://github.com/soybeanjs/cli/commit/9ee85ff) ### 🐞 Bug Fixes -- **projects**: Fix github workflow - by @soybeanjs [<samp>(7f2c8)</samp>](https://github.com/soybeanjs/cli/commit/7f2c82f) -- **projects**: Fix github workflow - by @soybeanjs [<samp>(253b4)</samp>](https://github.com/soybeanjs/cli/commit/253b418) +- **projects**: Fix generate changelog timing - by @soybeanjs [<samp>(c0155)</samp>](https://github.com/soybeanjs/cli/commit/c015535) ### 📖 Documentation -- **projects**: Update CHANGELOG.md [更新日志文件] - by @soybeanjs [<samp>(18271)</samp>](https://github.com/soybeanjs/cli/commit/18271b7) - -### 🏡 Chore - -- **main**: Release 0.2.3 - by @github-actions[bot] [<samp>(e6285)</samp>](https://github.com/soybeanjs/cli/commit/e628595) -- **main**: Release 0.2.4 - by @github-actions[bot] [<samp>(25665)</samp>](https://github.com/soybeanjs/cli/commit/2566553) +- **projects**: Update CHANGELOG.md title - by @soybeanjs [<samp>(4085e)</samp>](https://github.com/soybeanjs/cli/commit/4085eb7) ### ❤️ Contributors <a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> <a href="https://github.com/github-actions[bot]" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/github-actions[bot].png?size=48" alt="@github-actions[bot]" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> </a> -## [v0.2.3](https://github.com/soybeanjs/cli/compare/v0.2.2...v0.2.3)(2023-06-04) - -### 🏡 Chore - -- Release v0.2.3 - by @soybeanjs [<samp>(87bfa)</samp>](https://github.com/soybeanjs/cli/commit/87bfa39) -- **project**: Create release-please.yml [创建github workflows] - by @honghuangdc [<samp>(4edff)</samp>](https://github.com/soybeanjs/cli/commit/4edff44) -- **projects**: Remove github action - by @soybeanjs [<samp>(a6530)</samp>](https://github.com/soybeanjs/cli/commit/a65308e) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> <a href="https://github.com/honghuangdc" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/honghuangdc.png?size=48" alt="@honghuangdc" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.2](https://github.com/soybeanjs/cli/compare/v0.2.1...v0.2.2)(2023-06-04) - -### 🏡 Chore - -- Release v0.2.2 - by @soybeanjs [<samp>(df1ad)</samp>](https://github.com/soybeanjs/cli/commit/df1ad48) -- **projects**: Add changelog [添加日志] - by @soybeanjs [<samp>(f72dc)</samp>](https://github.com/soybeanjs/cli/commit/f72dce8) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.1](https://github.com/soybeanjs/cli/compare/v0.2.0...v0.2.1)(2023-06-04) - -### 🏡 Chore - -- Release v0.2.1 - by @soybeanjs [<samp>(65537)</samp>](https://github.com/soybeanjs/cli/commit/65537b0) -- **deps**: Update deps [升级依赖] - by @soybeanjs [<samp>(367eb)</samp>](https://github.com/soybeanjs/cli/commit/367eb63) -- **projects**: Add github action [添加github action] - by @soybeanjs [<samp>(85872)</samp>](https://github.com/soybeanjs/cli/commit/858724c) -- **projects**: Update commit config [更新git commit配置] - by @soybeanjs [<samp>(a0ebc)</samp>](https://github.com/soybeanjs/cli/commit/a0ebc05) -- **types**: Add node type - by @soybeanjs [<samp>(aba8d)</samp>](https://github.com/soybeanjs/cli/commit/aba8db1) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.2.0](https://github.com/soybeanjs/cli/compare/v0.1.9...v0.2.0)(2023-06-04) - -### 📦 Build - -- **deps**: Update deps [升级依赖] - by @soybeanjs [<samp>(e67d4)</samp>](https://github.com/soybeanjs/cli/commit/e67d488) - -### 🏡 Chore - -- Release v0.2.0 - by @soybeanjs [<samp>(4688b)</samp>](https://github.com/soybeanjs/cli/commit/4688b66) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.9](https://github.com/soybeanjs/cli/compare/v0.1.8...v0.1.9)(2023-06-04) - -### 💅 Refactors - -- **projects**: Use enquirer to replace prompts - by @soybeanjs [<samp>(63fa4)</samp>](https://github.com/soybeanjs/cli/commit/63fa4f1) - -### 🏡 Chore - -- Release v0.1.9 - by @soybeanjs [<samp>(76788)</samp>](https://github.com/soybeanjs/cli/commit/7678829) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.8](https://github.com/soybeanjs/cli/compare/v0.1.7...v0.1.8)(2023-06-04) - -### 🐞 Bug Fixes - -- **projects**: Fix cleanup on windows [修复cleanup命令在windows上的问题] - by @soybeanjs [<samp>(baa02)</samp>](https://github.com/soybeanjs/cli/commit/baa02bb) - -### 🏡 Chore - -- Release v0.1.8 - by @soybeanjs [<samp>(041b6)</samp>](https://github.com/soybeanjs/cli/commit/041b6ff) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.7](https://github.com/soybeanjs/cli/compare/v0.1.6...v0.1.7)(2023-06-04) - -### 💅 Refactors - -- **projects**: Add format command - by @soybeanjs [<samp>(4d033)</samp>](https://github.com/soybeanjs/cli/commit/4d033c1) - -### 🏡 Chore - -- Release v0.1.7 - by @soybeanjs [<samp>(11a2e)</samp>](https://github.com/soybeanjs/cli/commit/11a2e67) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.6](https://github.com/soybeanjs/cli/compare/v0.1.5...v0.1.6)(2023-06-04) - -### 📦 Build - -- **projects**: Fix cleanup script - by @soybeanjs [<samp>(6432b)</samp>](https://github.com/soybeanjs/cli/commit/6432b14) - -### 🏡 Chore - -- Release v0.1.6 - by @soybeanjs [<samp>(d2178)</samp>](https://github.com/soybeanjs/cli/commit/d217802) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.5](https://github.com/soybeanjs/cli/compare/v0.1.4...v0.1.5)(2023-06-04) - -### 🚀 Features - -- **projects**: Add some scripts - by @soybeanjs [<samp>(752b7)</samp>](https://github.com/soybeanjs/cli/commit/752b7f6) - -### 🏡 Chore - -- Release v0.1.5 - by @soybeanjs [<samp>(0ab63)</samp>](https://github.com/soybeanjs/cli/commit/0ab639a) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.4](https://github.com/soybeanjs/cli/compare/v0.1.3...v0.1.4)(2023-06-04) - -### 🐞 Bug Fixes - -- **projects**: Fix cz-git config, and import commitlint - by @soybeanjs [<samp>(41b63)</samp>](https://github.com/soybeanjs/cli/commit/41b63e5) - -### 💅 Refactors - -- **projects**: Import cz-git - by @soybeanjs [<samp>(65dbd)</samp>](https://github.com/soybeanjs/cli/commit/65dbde8) -- **projects**: Remove @commitlint/config-conventional - by @soybeanjs [<samp>(3bce0)</samp>](https://github.com/soybeanjs/cli/commit/3bce01a) - -### 📦 Build - -- **projects**: Replace husky by simple-git-hooks - by @soybeanjs [<samp>(d3bf4)</samp>](https://github.com/soybeanjs/cli/commit/d3bf4db) - -### 🏡 Chore - -- Release v0.1.4 - by @soybeanjs [<samp>(a005b)</samp>](https://github.com/soybeanjs/cli/commit/a005b25) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.3](https://github.com/soybeanjs/cli/compare/v0.1.2...v0.1.3)(2023-06-04) - -### 🐞 Bug Fixes - -- **projects**: Add rimraf - by @soybeanjs [<samp>(c2a27)</samp>](https://github.com/soybeanjs/cli/commit/c2a27db) - -### 📦 Build - -- **projects**: Add examples pkg - by @soybeanjs [<samp>(66236)</samp>](https://github.com/soybeanjs/cli/commit/6623694) -- **projects**: Update config - by @soybeanjs [<samp>(46461)</samp>](https://github.com/soybeanjs/cli/commit/4646167) - -### 🏡 Chore - -- Release v0.1.3 - by @soybeanjs [<samp>(029d7)</samp>](https://github.com/soybeanjs/cli/commit/029d725) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.2](https://github.com/soybeanjs/cli/compare/v0.1.1...v0.1.2)(2023-06-04) - -### 📦 Build - -- **projects**: Add tsconfig.json - by @soybeanjs [<samp>(24b77)</samp>](https://github.com/soybeanjs/cli/commit/24b7755) -- **projects**: Update config - by @soybeanjs [<samp>(d0d9a)</samp>](https://github.com/soybeanjs/cli/commit/d0d9a94) - -### 🏡 Chore - -- Release v0.1.2 - by @soybeanjs [<samp>(0283b)</samp>](https://github.com/soybeanjs/cli/commit/0283b6a) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - -## [v0.1.1](https://github.com/soybeanjs/cli/compare/v0.1.0...v0.1.1)(2023-06-04) - -### 📦 Build - -- **projects**: Update config - by @soybeanjs [<samp>(48cf5)</samp>](https://github.com/soybeanjs/cli/commit/48cf58f) -- **projects**: Upadte package.json - by @soybeanjs [<samp>(94b2e)</samp>](https://github.com/soybeanjs/cli/commit/94b2e6f) -- **projects**: Upadte config - by @soybeanjs [<samp>(184a6)</samp>](https://github.com/soybeanjs/cli/commit/184a6e4) - -### 🏡 Chore - -- Release v0.1.1 - by @soybeanjs [<samp>(bd458)</samp>](https://github.com/soybeanjs/cli/commit/bd4580f) - -### ❤️ Contributors - -<a href="https://github.com/soybeanjs" data-hovercard-type="user" data-hovercard-url="/users/yanbowe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self"> - <img src="https://github.com/soybeanjs.png?size=48" alt="@soybeanjs" size="32" height="32" width="32" data-view-component="true" class="avatar circle"> -</a> - - - diff --git a/package.json b/package.json index 34e2d84..85d0623 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,7 @@ "commit": "soy git-commit", "cleanup": "soy cleanup", "update-pkg": "soy update-pkg", - "version": "pnpm soy changelog", - "update-version": "bumpp **/package.json !**/node_modules --tag --commit=\"chore(projects): release v%s\"", + "update-version": "bumpp **/package.json !**/node_modules --execute=\"pnpm soy changelog && git add .\" --tag --commit=\"chore(projects): release v%s\"", "publish-pkg": "pnpm -r publish --access public", "typecheck": "tsc --noEmit", "release": "pnpm update-version && pnpm build && pnpm publish-pkg" diff --git a/src/changelog/index.ts b/src/changelog/index.ts index 44afc29..2703549 100644 --- a/src/changelog/index.ts +++ b/src/changelog/index.ts @@ -136,7 +136,7 @@ export async function generateChangelog(total = false) { if (total) { md = await generateChangelogByTags(options); - writeMarkdown(md, options.output, true); + await writeMarkdown(md, options.output, true); return; } @@ -147,5 +147,5 @@ export async function generateChangelog(total = false) { } md = await generateChangelogByTag(options); - writeMarkdown(md, options.output, false); + await writeMarkdown(md, options.output, false); } diff --git a/src/index.ts b/src/index.ts index 3d7ace0..bcec952 100644 --- a/src/index.ts +++ b/src/index.ts @@ -71,8 +71,8 @@ const commands: CommandWithAction<CommandArg> = { }, changelog: { desc: '生成changelog', - action: args => { - genChangelog(args?.total); + action: async args => { + await genChangelog(args?.total); } } };