Skip to content

kaskar2008/action-auto-bump-version

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published