Skip to content

Commit d346dd9

Browse files
Fix publish workflow to avoid incorrect tag
Signed-off-by: Frederik Prijck <[email protected]>
1 parent 2d84fc5 commit d346dd9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
required: true
1313
default: ''
1414
type: string
15+
tag:
16+
description: The tag being published. This should be latest, beta or any tag you wish to support.
17+
required: true
18+
default: latest
19+
type: string
1520
dry-run:
1621
type: boolean
1722
description: Perform a publishing dry run. This will not publish the release, but will validate the release and log the commands that would be run.
@@ -104,6 +109,6 @@ jobs:
104109
run: npm ci
105110

106111
- name: Publish release to NPM
107-
run: npm publish --provenance --tag ${{ needs.configure.outputs.vtag }} ${{ needs.configure.outputs.dry-run }}
112+
run: npm publish --provenance --tag ${{ github.event.inputs.tag }} ${{ needs.configure.outputs.dry-run }}
108113
env:
109114
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)