From 31b16a6bc5eb8ce958cecc28d832b40ef8931cc8 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Tue, 18 Oct 2022 11:55:50 +0400 Subject: [PATCH] Add npm tag to release UI (#577) choice: nightly or latest --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36f93fe4..f09e8260 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,14 @@ on: description: "Set to 'true' to make a GitHub release" required: true default: "false" + npm_tag: + description: 'npm tag' + required: true + default: 'latest' + type: choice + options: + - latest + - nightly jobs: release: @@ -84,7 +92,7 @@ jobs: run: | npm i npm run build - npm publish --access public + npm publish --access public --tag "${{ github.event.inputs.npm_tag }}" working-directory: ./npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}