We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c03881b commit fda8c48Copy full SHA for fda8c48
.github/workflows/publish.yml
@@ -3,6 +3,12 @@ name: Publish
3
on:
4
release:
5
types: [created]
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag_name:
9
+ description: 'Tag name for the release'
10
+ required: true
11
+ type: string
12
13
permissions:
14
contents: read
@@ -22,7 +28,7 @@ jobs:
22
28
- run: npm run 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.tag_name }}
26
32
- run: npm whoami; npm --ignore-scripts publish --provenance
27
33
34
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments