Skip to content

Create versioned release #3

Create versioned release

Create versioned release #3

# File: .github/workflows/release-version.yaml
name: Create versioned release
permissions:
contents: write
packages: write
on:
workflow_dispatch:
inputs:
update-type:
type: choice
description: Which version you want to increment? Use major, minor or patch
required: true
default: patch
options:
- major
- minor
- patch
label:
description: Add Labels. i.e final, alpha, rc
required: false
pre-release:
type: boolean
description: Pre-release
required: false
default: false
jobs:
release-version:
name: Create SemVer releases
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create version releases
uses: climpr/semver-release@v1
with:
update-type: ${{ github.event.inputs.update-type }}
label: ${{ github.event.inputs.label }}
pre-release: ${{ github.event.inputs.pre-release }}