Skip to content

Commit 09374f4

Browse files
authored
chore: release 7.2.0
* feat(): initial implement of release please * feat: put tags to update version in csproj * chore: change workflow to look likes python's workflow Release-As: 7.2.0
1 parent db96e14 commit 09374f4

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
1-
name: Publish NuGet Package
1+
name: Release - Publish NuGet Package
22

33
on:
44
push:
5+
paths-ignore:
6+
- '.github/**'
7+
- 'CHANGELOG.md'
58
branches:
6-
- release/* # Default release branch
9+
- master
710

811
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
issues: write
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
with:
21+
target-branch: ${{ github.ref_name }}
22+
manifest-file: .release-please-manifest.json
23+
config-file: release-please-config.json
24+
925
publish:
26+
needs: release-please
27+
if: ${{ github.repository_owner == 'supabase-community' && startsWith(github.event.head_commit.message, 'chore(master)') && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
1028
name: build, pack & publish
1129
runs-on: ubuntu-latest
1230
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+
".": "7.1.0"
3+
}

Realtime/Realtime.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
<PackageProjectUrl>https://github.com/supabase/realtime-csharp</PackageProjectUrl>
1717
<Summary>Realtime-csharp is written as a client library for supabase/realtime.</Summary>
1818
<PackageTags>supabase, realtime, phoenix</PackageTags>
19+
<!-- x-release-please-start-version -->
1920
<PackageVersion>7.1.0</PackageVersion>
2021
<ReleaseVersion>7.1.0</ReleaseVersion>
22+
<!-- x-release-please-end -->
2123
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2224
<PackageIcon>icon.png</PackageIcon>
2325
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -31,7 +33,7 @@
3133
</PropertyGroup>
3234

3335
<PropertyGroup Condition=" '$(Version)' == '' ">
34-
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">7.1.0</VersionPrefix>
36+
<VersionPrefix Condition=" '$(VersionPrefix)' == '' ">7.1.0</VersionPrefix> <!-- x-release-please-version -->
3537
<VersionSuffix Condition=" '$(VersionSuffix)' == '' "></VersionSuffix>
3638
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionPrefix)-$(VersionSuffix)</Version>
3739
<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+
"Realtime/Realtime.csproj"
12+
]
13+
}
14+
},
15+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
16+
}

0 commit comments

Comments
 (0)