Bumps target branch version on PR merge.
Major version bump label. Default "major"
.
Minor version bump label. Default "minor"
.
Patch version bump label. Default "patch"
.
Should the default version command be called (valid npm version
argument). Default false
.
Default version command if no label is provided (valid npm version
argument). Default "patch"
.
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