This GitHub action increments a given version.
Create a workflow .yml
file in your .github/workflows
directory. An example workflow is available below.
For more information, reference the GitHub Help Documentation for Creating a workflow file
version
(required): The version to incrementrelease-type
(required): The release type to increment the version withprerelease-identifier
: The prerelease identifier to use when incrementing
previous-version
: The inputted versionnext-version
: The incremented version
on:
push:
branches:
- '**'
pull_request:
types: [closed]
name: Increment Version
jobs:
context:
name: Increment Version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Increment version
uses: dolittle/increment-version-action@v2
with:
version: 2.0.0
release-type: minor
on:
push:
branches:
- '**'
pull_request:
types: [closed]
name: Increment Version
jobs:
context:
name: Increment Version
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Increment version
uses: dolittle/increment-version-action@v2
with:
version: 2.0.0
release-type: preminor
prerelease-identifier: alpha
We're always open for contributions and bug fixes!
- node <= 12
- yarn
- git