From f59667965899ce20b8ce2d068225b6317cae395d Mon Sep 17 00:00:00 2001 From: Daniel Kanas Date: Thu, 6 Aug 2026 10:49:38 +0200 Subject: [PATCH] ci: publish on push to main CI already runs on every pull request, so waiting for a second CI run to complete on main only delayed the release. Trigger the publish on push to main instead. Version-change detection, publishing and tagging are unchanged, as is workflow_dispatch. --- .github/workflows/publish.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9ca6ddd..aaf50af 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,7 @@ name: Publish on: - workflow_run: - workflows: [CI] - types: [completed] + push: branches: [main] workflow_dispatch: @@ -19,11 +17,9 @@ jobs: publish: name: Publish to npm runs-on: ubuntu-latest - if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' steps: - uses: actions/checkout@v6 with: - ref: ${{ github.event.workflow_run.head_sha || github.sha }} fetch-depth: 2 - name: Check version change id: version