Skip to content

Commit

Permalink
Fix publish workflow to avoid incorrect tag
Browse files Browse the repository at this point in the history
Signed-off-by: Frederik Prijck <[email protected]>
  • Loading branch information
frederikprijck committed Oct 31, 2023
1 parent 2d84fc5 commit d346dd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
required: true
default: ''
type: string
tag:
description: The tag being published. This should be latest, beta or any tag you wish to support.
required: true
default: latest
type: string
dry-run:
type: boolean
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.
Expand Down Expand Up @@ -104,6 +109,6 @@ jobs:
run: npm ci

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

0 comments on commit d346dd9

Please sign in to comment.