From 6f64c96599b9f746adc89c87f1eedec247405e33 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Mon, 22 Sep 2025 15:04:58 -0300 Subject: [PATCH 1/2] chore(ci): fix release please to run publish when a new release is created --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e086d619..bb96d40c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,9 +76,11 @@ jobs: id: release with: target-branch: ${{ github.ref_name }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json publish: needs: release-please - if: ${{ startsWith(github.event.head_commit.message, 'chore(main)') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }} + if: ${{ needs.release-please.outputs.release_created }} runs-on: ubuntu-latest name: "Publish to PyPi" environment: From 60164d9491e8d3c54fd607b1cfff3c62957bafdc Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Mon, 22 Sep 2025 15:13:18 -0300 Subject: [PATCH 2/2] chore: rename job to run release please its not only creating the changelog, but it also creates new releases when PRs are merged --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb96d40c..c1e98c24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: needs: test if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }} runs-on: ubuntu-latest - name: "Bump version and create changelog" + name: "Run release-please" permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing contents: write # needed for github actions bot to write to repo