Skip to content

Commit 6e19a47

Browse files
authored
chore(ci): fix release please, run publish when new release is created (#1225)
1 parent b1d228c commit 6e19a47

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
needs: test
6767
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
6868
runs-on: ubuntu-latest
69-
name: "Bump version and create changelog"
69+
name: "Run release-please"
7070
permissions:
7171
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
7272
contents: write # needed for github actions bot to write to repo
@@ -76,9 +76,11 @@ jobs:
7676
id: release
7777
with:
7878
target-branch: ${{ github.ref_name }}
79+
config-file: release-please-config.json
80+
manifest-file: .release-please-manifest.json
7981
publish:
8082
needs: release-please
81-
if: ${{ startsWith(github.event.head_commit.message, 'chore(main)') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
83+
if: ${{ needs.release-please.outputs.release_created }}
8284
runs-on: ubuntu-latest
8385
name: "Publish to PyPi"
8486
environment:

0 commit comments

Comments
 (0)