Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 939 Bytes

README.md

File metadata and controls

50 lines (31 loc) · 939 Bytes

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