Skip to content

Commit 496d95a

Browse files
authored
update ci for publishing package (#349)
1 parent bef118f commit 496d95a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/ci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: CI/CD
22

3-
on: [pull_request, push, workflow_dispatch]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
49

510
jobs:
611
test:
@@ -28,7 +33,7 @@ jobs:
2833

2934
publish:
3035
needs: test
31-
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' }}
36+
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' }}
3237
runs-on: ubuntu-latest
3338
name: "Bump version, create changelog and publish"
3439
environment:

0 commit comments

Comments
 (0)