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

GitHub Action

SemVersion

v1.0.1

SemVersion

play

SemVersion

GitHub Action to find the next version of your project using Conventional Commit

Installation

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

              

- name: SemVersion

uses: shiipou/[email protected]

Learn more about this action in shiipou/sem-version

Choose a version

SemRelease

Simple but enough Semantic release action for GitHub that totally replace nvm one.

Usage :

name: Release
on:
  push:
    branches:
    - stable
    - beta
    - "*.x"

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    timeout-minutes: 2
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Get-Version
      id: get-version
      uses: shiipou/sem-release@stable
      with:
        RELEASE_BRANCHES_REGEX: '^(stable)$'
        PRERELEASE_BRANCHES_REGEX: '^(beta|rc)$'
        ALLOW_FAILURE: false
        DEBUG: true

    - name: Release
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      if: steps.get-version.outputs.WILL_RELEASE == 'true'
      uses: actions/create-release@v1
      with:
        tag_name: v${{ steps.get-version.outputs.VERSION }}
        release_name: v${{ steps.get-version.outputs.VERSION }}
        body: |
          v${{ steps.get-version.outputs.VERSION }}
        draft: false
        prerelease: ${{ steps.get-version.outputs.IS_PRE_RELEASE }}