enable publishing specific versions from workflow
This commit is contained in:
parent
0452c5fcf0
commit
95a20df58b
@ -2,10 +2,12 @@
|
|||||||
name: Build and publish
|
name: Build and publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- workflow_dispatch
|
workflow_dispatch:
|
||||||
# push:
|
inputs:
|
||||||
# branches:
|
version:
|
||||||
# - master
|
type: string
|
||||||
|
description: Semver to publish
|
||||||
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-publish:
|
build-and-publish:
|
||||||
@ -33,4 +35,6 @@ jobs:
|
|||||||
run: npm run tsc
|
run: npm run tsc
|
||||||
|
|
||||||
- name: Publish package
|
- 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