Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ on:
workflow_dispatch:
inputs:
upgrade:
description: Type of version upgrade (patch, minor, major)
description: Version action (patch, minor, major, or publish existing without bumping)
required: true
default: patch
type: choice
options:
- patch
- minor
- major
publish_existing:
description: Publish the version already on master without changing it
required: true
default: false
type: boolean
- existing

permissions:
contents: write
Expand All @@ -29,22 +25,22 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22
node-version: 24
registry-url: https://registry.npmjs.org/
package-manager-cache: false

- name: Setup git
if: inputs.publish_existing == false
if: inputs.upgrade != 'existing'
run: |-
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: Bump version
if: inputs.publish_existing == false
if: inputs.upgrade != 'existing'
run: npm version ${{ inputs.upgrade }}

- name: Push version
if: inputs.publish_existing == false
if: inputs.upgrade != 'existing'
run: |-
git push
git push --tags
Expand Down