Add npm tag to release UI (#577)

choice: nightly or latest
This commit is contained in:
folex 2022-10-18 11:55:50 +04:00 committed by GitHub
parent 7fa43c3d11
commit 31b16a6bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,14 @@ on:
description: "Set to 'true' to make a GitHub release" description: "Set to 'true' to make a GitHub release"
required: true required: true
default: "false" default: "false"
npm_tag:
description: 'npm tag'
required: true
default: 'latest'
type: choice
options:
- latest
- nightly
jobs: jobs:
release: release:
@ -84,7 +92,7 @@ jobs:
run: | run: |
npm i npm i
npm run build npm run build
npm publish --access public npm publish --access public --tag "${{ github.event.inputs.npm_tag }}"
working-directory: ./npm working-directory: ./npm
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}