Skip to content

bifravst/get-next-version-action

Get Next Release Action

GitHub Actions semantic-release Renovate @commitlint/config-conventional code style: prettier ESLint: TypeScript

Determines the next release version for the current repository, using @semantic-release/commit-analyzer.

This is useful in cases where you need to know the version that is about to be released, so it can be included as a version string in a build.

Usage

- uses: actions/checkout@v2
- name: Determine next release version
  uses: bifravst/get-next-version-action@saga
  id: version
  with:
    branch: saga
    defaultVersion: "0.0.0-development"

${{ steps.version.outputs.nextRelease }} then contains the next release version (or 0.0.0-development if no new release would be created).

Here is a minimal example.