From fb8ade25c3b09b2fa17b59896fff5e9da5ecea29 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Thu, 11 Jan 2024 23:21:05 +0000 Subject: [PATCH] update ci for publishing package --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2f814e9..ec79e78d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,11 @@ name: CI/CD -on: [pull_request, push, workflow_dispatch] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: jobs: test: @@ -28,7 +33,7 @@ jobs: publish: needs: test - if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }} + if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/master' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }} runs-on: ubuntu-latest name: "Bump version, create changelog and publish" environment: