Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
tag

GitHub Action

Semver Release

v1.0.3

Semver Release

tag

Semver Release

Automatically create Semver compliant tags or releases based on PR labels

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Semver Release

uses: K-Phoen/semver-release-action@v1.0.3

Learn more about this action in K-Phoen/semver-release-action

Choose a version

Semver Release Github Action

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.

Inputs

release_branch

Required Branch to tag. Default "master".

Outputs

tag

The newly created tag.

Example usage

# .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 }}