Skip to content

Create a new version #1

Create a new version

Create a new version #1

Workflow file for this run

name: Create a new version
on:
workflow_dispatch:
inputs:
version:
description: Type of version bump
required: true
type: choice
options:
- major
- minor
- patch
permissions:
contents: write
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: npm
- name: Configure git
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
- run: npm version ${{ github.event.inputs.version }}
- run: git push --follow-tags