Skip to content

Auto bump version

Actions
Bumps target branch version on PR merge
v2.1.1
Latest
Star (2)

Auto bump version

Bumps target branch version on PR merge.

Inputs

major-label

Major version bump label. Default "major".

minor-label

Minor version bump label. Default "minor".

patch-label

Patch version bump label. Default "patch".

should-default

Should the default version command be called (valid npm version argument). Default false.

default

Default version command if no label is provided (valid npm version argument). Default "patch".

Example usage

name: Bump version

on:
  pull_request:
    types: [ closed ]
    branches: [ master, dev, "release/*" ]

jobs:
  tag-and-push:
    if: github.event.pull_request.merged == true

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.pull_request.base.ref }}

      - name: Auto bump version
        uses: kaskar2008/action-auto-bump-version@v1

Auto bump version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Bumps target branch version on PR merge
v2.1.1
Latest

Auto bump version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.