Release Branch Created #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Branch Created | |
# Run whenever a ref is created https://docs.github.com/en/actions/reference/events-that-trigger-workflows#create | |
on: | |
create | |
jobs: | |
# First job in the workflow builds and verifies the software artifacts | |
bump: | |
name: Bump minor version on develop | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Only run if ref created was a release branch | |
if: | |
${{ startsWith(github.ref, 'refs/heads/release/') }} | |
steps: | |
# Checks-out the develop branch | |
- uses: actions/checkout@v2 | |
with: | |
ref: 'refs/heads/develop' | |
- name: Bump minor version | |
run: | | |
npm version prepatch -m '/version %s' | |
- name: Commit Version Bump | |
run: | | |
git config --global user.name 'hitide-profile bot' | |
git config --global user.email '[email protected]' | |
git push |