enable publishing specific versions from workflow
This commit is contained in:
parent
0452c5fcf0
commit
95a20df58b
@ -2,10 +2,12 @@
|
||||
name: Build and publish
|
||||
|
||||
on:
|
||||
- workflow_dispatch
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
type: string
|
||||
description: Semver to publish
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
@ -33,4 +35,6 @@ jobs:
|
||||
run: npm run tsc
|
||||
|
||||
- name: Publish package
|
||||
run: npm publish
|
||||
run: |
|
||||
npm version ${{ inputs.version }} --allow-same-version --git-tag-version false
|
||||
npm publish
|
||||
|
Loading…
x
Reference in New Issue
Block a user