Skip to content

Tag Version

Tag Version #42

Workflow file for this run

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