Skip to content

ltv/standard-version-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Standard Version Action

This Github Action calculates the new version based on Conventional Commits, updates CHANGELOG, and creates the new git tag. It's powered by Standard Version.

Inputs

If you want to change a configuration, create a .versionrc.js file. More detail: versionrc file

Example usage

- uses: actions/checkout@v2
- name: Configure committer
  run: |
    git config user.name "GitHub Actions Bot"
    git config user.email "<>"
- name: Bump version
  id: release
  uses: ltv/standard-version-action@v2
  with:
    releaseAs: 'minor'
- run: |
    echo "Released version: $VERSION"
  env:
    VERSION: ${{ steps.release.output.version }}

Inputs:

inputs:
  releaseAs:
    description: 'Release as major|minor|patch'
    required: false
    default: 'minor'
  prerelease:
    description: 'Pre-release version alpha|beta|...'
    required: false