We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a1e1dc commit 10832e5Copy full SHA for 10832e5
.github/workflows/npm-publish.yml
@@ -9,6 +9,10 @@ on:
9
required: false
10
type: boolean
11
default: false
12
+ custom_tag:
13
+ description: 'Publish with custom dist-tag only (e.g. 2.x). Does not set latest or next.'
14
+ required: false
15
+ type: string
16
17
permissions:
18
id-token: write # Required for OIDC
@@ -42,7 +46,9 @@ jobs:
42
46
43
47
- name: Publish to npm
44
48
run: |
45
- if [ "${{ github.event.inputs.prerelease }}" == "true" ]; then
49
+ if [ -n "${{ github.event.inputs.custom_tag }}" ]; then
50
+ npm publish --access public --tag ${{ github.event.inputs.custom_tag }}
51
+ elif [ "${{ github.event.inputs.prerelease }}" == "true" ]; then
52
npm publish --access public --tag next
53
else
54
npm publish --access public
0 commit comments