From 72ea9d05850bf3e7b5f8ea49aa4b2ea9406842cd Mon Sep 17 00:00:00 2001 From: frankcrypto2023 Date: Tue, 6 Aug 2024 15:42:39 +0800 Subject: [PATCH] fix auto publish logic --- .github/workflows/publish.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e6b63c8..97fd226 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,14 +4,15 @@ name: publish code on npm on: - pull_request: - branches: [main] + push: + branches: + - main + repository_dispatch: types: - - closed + - webhook jobs: publish: - if: ${{ github.event.pull_request.merged }} runs-on: ubuntu-latest permissions: id-token: write