Skip to content

Commit dd59376

Browse files
authored
ci: use Node 24 and add 'existing' option to release workflow (#118)
Bump release runner to Node 24 for npm Trusted Publishing OIDC support, and consolidate the release action into a single `upgrade` input with options: `patch`, `minor`, `major`, and `existing` (publish without re-bumping).
1 parent 314eee3 commit dd59376

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ on:
44
workflow_dispatch:
55
inputs:
66
upgrade:
7-
description: Type of version upgrade (patch, minor, major)
7+
description: Version action (patch, minor, major, or publish existing without bumping)
88
required: true
99
default: patch
1010
type: choice
1111
options:
1212
- patch
1313
- minor
1414
- major
15-
publish_existing:
16-
description: Publish the version already on master without changing it
17-
required: true
18-
default: false
19-
type: boolean
15+
- existing
2016

2117
permissions:
2218
contents: write
@@ -29,22 +25,22 @@ jobs:
2925
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3026
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
3127
with:
32-
node-version: 22
28+
node-version: 24
3329
registry-url: https://registry.npmjs.org/
3430
package-manager-cache: false
3531

3632
- name: Setup git
37-
if: inputs.publish_existing == false
33+
if: inputs.upgrade != 'existing'
3834
run: |-
3935
git config --global user.name "github-actions[bot]"
4036
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
4137
4238
- name: Bump version
43-
if: inputs.publish_existing == false
39+
if: inputs.upgrade != 'existing'
4440
run: npm version ${{ inputs.upgrade }}
4541

4642
- name: Push version
47-
if: inputs.publish_existing == false
43+
if: inputs.upgrade != 'existing'
4844
run: |-
4945
git push
5046
git push --tags

0 commit comments

Comments
 (0)