Skip to content

Commit 71912ec

Browse files
committed
chore: implement release please
1 parent 0f4ed39 commit 71912ec

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,29 @@ name: Publish NuGet Package
33
on:
44
push:
55
branches:
6-
- release/* # Default release branch
6+
- master
7+
workflow_run:
8+
workflows: [ build-and-test ]
9+
types:
10+
- completed
711

812
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
issues: write
19+
steps:
20+
- uses: googleapis/release-please-action@v4
21+
with:
22+
target-branch: ${{ github.ref_name }}
23+
manifest-file: .release-please-manifest.json
24+
config-file: release-please-config.json
25+
926
publish:
27+
needs: release-please
28+
if: ${{ github.repository_owner == 'supabase-community' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
1029
name: build, pack & publish
1130
runs-on: ubuntu-latest
1231
steps:

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "4.1.0"
3+
}

Postgrest/Postgrest.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
</Description>
2323
<PackageIconUrl>https://avatars.githubusercontent.com/u/54469796?s=200&amp;v=4</PackageIconUrl>
2424
<PackageTags>supabase,postgrest</PackageTags>
25+
<!-- x-release-please-start-version -->
2526
<ReleaseVersion>4.1.0</ReleaseVersion>
2627
<PackageVersion>4.1.0</PackageVersion>
28+
<!-- x-release-please-end -->
2729
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2830
<PackageIcon>icon.png</PackageIcon>
2931
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -35,7 +37,7 @@
3537
</PropertyGroup>
3638

3739
<PropertyGroup Condition=" '$(Version)' == '' ">
38-
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">4.1.0</VersionPrefix>
40+
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">4.1.0</VersionPrefix> <!-- x-release-please-version -->
3941
<VersionSuffix Condition=" '$(VersionSuffix)' == '' "></VersionSuffix>
4042
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
4143
<Version Condition=" '$(Version)' == '' ">$(VersionPrefix)</Version>

release-please-config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"packages": {
3+
".": {
4+
"changelog-path": "CHANGELOG.md",
5+
"bump-minor-pre-major": false,
6+
"bump-patch-for-minor-pre-major": false,
7+
"draft": false,
8+
"prerelease": false,
9+
"release-type": "simple",
10+
"extra-files": [
11+
"Postgrest/Postgrest.csproj"
12+
]
13+
}
14+
},
15+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
16+
}

0 commit comments

Comments
 (0)