Skip to content

Commit db0e152

Browse files
authored
fix(ci): fix ci action to reference output of release-please job (#1242)
1 parent da0b72b commit db0e152

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ jobs:
6767
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }}
6868
runs-on: ubuntu-latest
6969
name: "Run release-please"
70+
outputs:
71+
should_publish: steps.release.outputs.release_created
7072
permissions:
7173
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
7274
contents: write # needed for github actions bot to write to repo
@@ -80,7 +82,7 @@ jobs:
8082
manifest-file: .release-please-manifest.json
8183
publish:
8284
needs: release-please
83-
if: ${{ needs.release-please.outputs.release_created }}
85+
if: ${{ needs.release-please.outputs.should_publish }}
8486
runs-on: ubuntu-latest
8587
name: "Publish to PyPi"
8688
environment:

release-please-config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
"type": "toml",
5151
"path": "src/storage/pyproject.toml",
5252
"jsonpath": "$.project.version"
53+
},
54+
{
55+
"type": "generic",
56+
"path": "src/realtime/src/realtime/version.py"
57+
},
58+
{
59+
"type": "toml",
60+
"path": "src/realtime/pyproject.toml",
61+
"jsonpath": "$.project.version"
5362
}
5463
]
5564
}

src/realtime/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "realtime"
3-
version = "2.20.0" # {x-release-please-version}
3+
version = "2.21.0" # {x-release-please-version}
44
description = ""
55
authors = [
66
{ name = "Joel Lee", email="joel@joellee.org"},

0 commit comments

Comments
 (0)