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

ultimateai/bump-action

 
 

Repository files navigation

merge-bump-release

GitHub action to be applied on merged pull-request, to bump a semver and create a new release. Optionally, it can also bump version on changelog and package.json/version.txt

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.

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. Additionally and optionally, it can update your package.json/version.txt and/or changelog.md with the updated version.

If provided with bump: <patch | minor | major> or < fix | feat | breaking > 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.

How to add additional features and/or test

  1. Modify/add whatever you need from index.ts
  2. npm run build
  3. Add, commit and push your commits to a different branch
  4. Invoke this action with your branch --> uses: ultimateai/bump-action@{Your_branch}

Why use this action, instead of any other?

This action was born for satisfy specifically Ultimate's needs, with particular mention to file update, not only release bumping. It can be made more customizable to adapt to future needs.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.0%
  • JavaScript 3.0%