Skip to content

Generate tag version #95

Generate tag version

Generate tag version #95

Workflow file for this run

name: Generate tag version
on:
workflow_dispatch:
inputs:
version:
description: 'New version'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major
jobs:
version:
name: Create new version ${{ github.event.inputs.version }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: main
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
- name: Register github action
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Generate new version
run: pnpm version ${{ github.event.inputs.version }}
- name: Push new version tag to repository
run: git push origin main --tags