From f8ca528460601c7ffb17da44ed947c4627bcdf3d Mon Sep 17 00:00:00 2001 From: jinku Date: Sun, 5 Apr 2026 10:12:59 -0700 Subject: [PATCH] Allow manual npm publish workflow runs --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 408c7f1..861bbd2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,12 @@ on: release: types: - published + workflow_dispatch: + inputs: + ref: + description: Git ref to publish from + required: false + default: main jobs: publish: @@ -14,7 +20,7 @@ jobs: steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.release.tag_name }} + ref: ${{ github.event.release.tag_name || inputs.ref || github.ref_name }} - uses: actions/setup-node@v6 with: node-version: 24