From d9b3650cddfbe602e1b9b5fccecc165c22f7b773 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Tue, 17 Nov 2026 22:00:03 -0500 Subject: [PATCH] ci: publish next packages only after a push to main Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7bfbd342..83eee19d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -172,7 +172,12 @@ jobs: publish-next: name: publish next packages runs-on: ubuntu-latest - if: github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' + # Only ci runs for a push to this repository publish next packages. + if: >- + github.event_name == 'workflow_run' && + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.event == 'push' && + github.event.workflow_run.head_repository.full_name == github.repository steps: - name: Checkout CI head uses: actions/checkout@v4