Skip to content
git-pull-request

GitHub Action

Standard version release branch

v1.2.1 Latest version

Standard version release branch

git-pull-request

Standard version release branch

Create a release branch updating changelog and tags with standard-version then open a pull request

Installation

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

              

- name: Standard version release branch

uses: Wuerike/standard-version-release-branch@v1.2.1

Learn more about this action in Wuerike/standard-version-release-branch

Choose a version

standard version release branch

Github action to open releases following conventional-commits, in order:

  • Create a release branch
  • Update Changelog and tags with standard-version
  • Push the brand new branch to your repo
  • Open the pull request against the branch you specify

Usage

Example Workflow file

name: Create Release Branch

on:
  workflow_dispatch:
    inputs:
      version:
        description: 'The version you want to release.'
        required: false

jobs:
  create-release-branch:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

      - uses: Wuerike/standard-version-release-branch@1.2.0
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          release_version: ${{ github.event.inputs.version }}
          origin_branch: develop
          target_branch: master
          as_draft: true
          pr_template: 'PR opened by [standard-version-release-branch](https://github.com/Wuerike/standard-version-release-branch)'

Inputs

Name Type Description
github_token string Github Token with write permissions Required
release_version string Version you want to release, in the formart MAJOR.MINOR.PATH Optional
origin_branch string Branch from where the release should be opened, usually develop Required
target_branch string Branch where the release should be merged, usually master or main Required
as_draft bool Boolean flag to open as draft or not Default: False
push_tag bool Boolean flag to push the new tag or not Default: False
pr_template string Template to be used as PR description Default: "PR opened by standard-version-release-branch"

Contributing

This project is totally open source and contributors are welcome.

Workflow

We use GitFlow, you can find more about this workfow here.

Branching

  • New Features feat/<Name-of-feature> from develop.
  • Bugfix fix/<Name-of-bugfix> from develop.
  • Hotfix hotfix/<Name-of-hotfix> from master.

Commit messages

See standard-version for commit guidelines.