Tag Version #44
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: Tag Version | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseType: | |
description: 'Semver Release Type (major,minor,patch)' | |
required: true | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.ZORGBORT_TOKEN }} | |
- name: Validate releaseType | |
run: npx in-string-list ${{ github.event.inputs.releaseType }} major,minor,patch | |
- name: Setup Git | |
run: | | |
git config user.name Zorgbort | |
git config user.email [email protected] | |
- name: Increment Version | |
run: npm version ${{ github.event.inputs.releaseType }} | |
- name: Push Changes | |
run: git push --follow-tags |