Skip to content

climpr/semver-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create SemVer Releases

This action creates a set of releases using the SemVer format.

How to use this action

Create a workflow in your repository incorporating this action.

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published