We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f448dc4 commit 4a7a45eCopy full SHA for 4a7a45e
1 file changed
.github/workflows/publish.yml
@@ -7,6 +7,12 @@ permissions:
7
on:
8
release:
9
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
16
17
jobs:
18
publish-npm:
@@ -22,5 +28,5 @@ jobs:
22
28
- run: npm test
23
29
- run: npm version ${TAG_NAME} --git-tag-version=false
24
30
env:
25
- TAG_NAME: ${{ github.event.release.tag_name }}
31
+ TAG_NAME: ${{ github.event.release.tag_name || github.event.inputs.version }}
26
32
- run: npm --ignore-scripts publish
0 commit comments