Skip to content

Commit 4a7a45e

Browse files
committed
add workflow_dispatch trigger
1 parent f448dc4 commit 4a7a45e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ permissions:
77
on:
88
release:
99
types: [created]
10+
workflow_dispatch:
11+
inputs:
12+
version:
13+
description: 'Version to publish (e.g., v1.2.3)'
14+
required: true
15+
type: string
1016

1117
jobs:
1218
publish-npm:
@@ -22,5 +28,5 @@ jobs:
2228
- run: npm test
2329
- run: npm version ${TAG_NAME} --git-tag-version=false
2430
env:
25-
TAG_NAME: ${{ github.event.release.tag_name }}
31+
TAG_NAME: ${{ github.event.release.tag_name || github.event.inputs.version }}
2632
- run: npm --ignore-scripts publish

0 commit comments

Comments
 (0)