Skip to content

Commit

Permalink
Add tag to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Oct 6, 2023
1 parent 199d92c commit 6361c9c
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 @@ -107,7 +112,7 @@ jobs:
run: rm -rf dist && rm -rf build && yarn dist build

- 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 }}

Expand Down

0 comments on commit 6361c9c

Please sign in to comment.