From 6361c9c78bf802de0664d2db0652a0d6ce58afa7 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Fri, 6 Oct 2023 12:42:03 +0200 Subject: [PATCH] Add tag to publish workflow --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 65b0f6577..cc4b01d05 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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. @@ -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 }}