repo-release helps you generate changelogs, bump versions, and publish GitHub releases + npm packages for your monorepo (sub)projects.
npx repo-release [...args]Arguments
--push: Automatic push of the new tag and release commit to your git repository--release: Bumps version inpackage.jsonand creates commit and git tags using localgit.--publish: Publishes package as a new version onnpm. You will need to set authorisation tokens separately via .npmrc or environment variables.--pkg <package>: Select the target package in the monorepo, if not specified, the CLI will prompt you to select the package.-r <version>|--bump:- If
--bumpis present, the version will be bumped automatically. - If
-ris supplied, the version will be set to the specified version. - By default, the CLI will prompt you to select the version bump type.
- If
E.g.: for fast shortcut usage, you can create a repo-release script at your monorepo root for npx -y repo-release@latest --release --bump --push --pkg=, you can then npm run repo-release --publish or npm run repo-release <pkg-name> --publish to release/publish a package in your monorepo.
https://github.com/hywax/changelogen-monorepo - amazing work by @hywax, this package is a fork that is more aligned with my needs/opinions.