Skip to content

A GitHub Action to SemVer bump and then create a GitHub release.

Notifications You must be signed in to change notification settings

amiiit/merge-bump-release

Repository files navigation

merge-bump-release

GitHub action to be applied on merged pull-request, to bump a semver and create a new release.

Setting up in your workflow:

The best explanation is by example. Please have a look at this project's pr.yml file to see how this project is dogfooding the action in order to bump-release itself. Your example may be a bit different, depending on your circumstances.

Features

Out of the box, this action will always bump your release with a patch, unless configured to do otherwise. This action can decide what part of the SemVer so increment depending on the way it's configured.

If provided with bump: <patch | minor | major> as input it will use this input to bump and ignore any other configuration.

If provided with infer_bump_from_commit: true as input it will try to guess the right one depending on the commit message. Right now the logic is a commit header that starts with the words 'patch', 'minor' or 'major'.

Options

Please refer to action.yml in this repository to see all available options.

Contributing

If you need more features, please submit an issue or a pull request.