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