From 78a2b4cacab5b573c56b31c1ba7d295ef590ddf4 Mon Sep 17 00:00:00 2001 From: Satvik Choudhary Date: Thu, 27 Nov 2025 00:26:43 +0530 Subject: [PATCH] trigger npm publish with workflow_dispatch --- .github/workflows/npm.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 93e667e..1f8f296 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -1,6 +1,7 @@ name: Publish to npm on: + workflow_dispatch: pull_request: types: [closed] branches: @@ -13,7 +14,7 @@ permissions: jobs: publish: runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'publish') + if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'publish')) steps: - name: Checkout repository