tdesign-publish-cli is a command-line interface tool designed to streamline the release process for JavaScript projects, particularly those adhering to Conventional Commits. It automates the generation of changelogs based on Git commit history, leveraging `standard-changelog`. Furthermore, it can create formatted messages for enterprise communication platforms like WeChat Work (WeCom) robots, supporting both release log notifications and instant recognition messages. The current stable version is `0.0.12`, indicating it's still in early development, and its release cadence is likely irregular as features are added and refined. Its key differentiator is the integrated robot message generation tailored for Chinese enterprise platforms, which goes beyond standard changelog tools.
npm install tdesign-publish-cliVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates installing the CLI, generating a changelog, and then generating a WeChat Work robot message, including an example of how to send it.
Adopt Conventional Commits in your project. Consider using `husky` and `cz-conventional-changelog` to enforce and facilitate this.
Add `robotMsg.json` to your `.gitignore` file. Always test robot messages in a dedicated testing group before sending to production channels to prevent 'operational incidents'.
Regularly check the project's repository and README for updates or breaking changes before upgrading. Pin exact versions (`"tdesign-publish-cli": "0.0.12"`) in `package.json` for stability.
Initialize a git repository (`git init`), make some commits, and ensure you are in the project's root directory.
Ensure you have recent commits that follow Conventional Commits and/or create a new Git tag (`git tag v1.0.0 && git push --tags`) to mark a release point.
Verify that `CHANGELOG.md` exists and contains content if generating release messages. Check terminal output for any errors during `tdesign-publish-cli robot` execution. Ensure proper write permissions in the project root.