enable publishing specific versions from workflow
All checks were successful
Build and test / build-and-test (18.x) (push) Successful in 15s
Build and test / build-and-test (20.x) (push) Successful in 17s

This commit is contained in:
James Brumond 2025-04-20 13:50:02 -07:00
parent 0452c5fcf0
commit 95a20df58b
Signed by: james
GPG Key ID: 54075022DEA90D75

View File

@ -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