Automatically create Semver compliant releases based on PR labels.
Assuming that a PR is tagged with a "semver-compliant" label (patch, minor or major), then this action can create a tag and a GitHub release when it is merged.
Required Branch to tag. Default "master"
.
Required Release strategy. Default "release"
(release
, none
).
Optional Tag to use. If left undefined, it will be computed using the tags already present in the repository.
The newly created tag.
# .github/workflows/release.yml
name: Release
on:
pull_request:
types: closed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Tag
uses: K-Phoen/semver-release-action@master
with:
release_branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This library is under the MIT license.