Conventional Release Setup


Run conventional-release-setup in your Terminal to enable your project to be released with Conventional Commits:

$ npx conventional-release-setup

Motivation

Most of my projects rely on Conventional Commits for releasing. But because the setup is repetitive, I decided to automate the process.

So in the past, I would manually:

Now I run the executable and it does all that for me.

Usage

If the binary is installed globally, you can execute it like so:

$ npm install --global conventional-release-setup
$ conventional-release-setup

Otherwise, execute it with npx:

$ npx conventional-release-setup

For your first release, it’s recommended to do the following:

# git stash
$ npm version 1.0.0
$ git add package.json
$ git commit -m 'chore(package): bump version to 1.0.0'
$ npx standard-version --first-release
# git stash pop

See standard-version > First Release for more details.

Package

You can find conventional-release-setup on:

Feel free to check out the GitHub repository.



If you enjoyed this post, please consider supporting this site!