Skip to content

Commit 0222116

Browse files
authored
Merge pull request #61 from open-feature/release-please/bootstrap/default
2 parents a6e5ccb + b008b76 commit 0222116

12 files changed

+82
-77
lines changed

.config/dotnet-tools.json

-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
"commands": [
88
"dotnet-format"
99
]
10-
},
11-
"dotnet-releaser": {
12-
"version": "0.4.2",
13-
"commands": [
14-
"dotnet-releaser"
15-
]
1610
}
1711
}
1812
}

.github/workflows/lint-pr.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Lint PR'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v4
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-package.yml

-21
This file was deleted.

.github/workflows/release.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Run Release Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-package:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- uses: google-github-actions/release-please-action@v3
14+
id: release
15+
with:
16+
command: manifest
17+
token: ${{secrets.GITHUB_TOKEN}}
18+
default-branch: main
19+
20+
- uses: actions/checkout@v3
21+
if: ${{ steps.release.outputs.releases_created }}
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Install dependencies
26+
if: ${{ steps.release.outputs.releases_created }}
27+
run: dotnet restore
28+
29+
- name: Build
30+
if: ${{ steps.release.outputs.releases_created }}
31+
run: |
32+
dotnet build --configuration Release --no-restore -p:Deterministic=true
33+
34+
- name: Pack
35+
if: ${{ steps.release.outputs.releases_created }}
36+
run: |
37+
dotnet pack OpenFeature.SDK.proj --configuration Release --no-build -p:PackageID=OpenFeature
38+
39+
- name: Publish to Nuget
40+
if: ${{ steps.release.outputs.releases_created }}
41+
run: |
42+
VERSION=${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
43+
dotnet nuget push OpenFeature.{VERSION}.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,3 @@ ASALocalRun/
348348
!.vscode/tasks.json
349349
!.vscode/launch.json
350350
!.vscode/extensions.json
351-
352-
# dotnet releaser artifacts
353-
/build/artifacts-dotnet-releaser

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.5"
3+
}

OpenFeature.SDK.sln

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{72005F60
77
build\Common.props = build\Common.props
88
build\Common.tests.props = build\Common.tests.props
99
build\Common.prod.props = build\Common.prod.props
10-
build\RELEASING.md = build\RELEASING.md
1110
.github\workflows\code-coverage.yml = .github\workflows\code-coverage.yml
1211
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
1312
.github\workflows\dotnet-format.yml = .github\workflows\dotnet-format.yml
1413
.github\workflows\linux-ci.yml = .github\workflows\linux-ci.yml
15-
.github\workflows\release-package.yml = .github\workflows\release-package.yml
14+
.github\workflows\release.yml = .github\workflows\release.yml
1615
.github\workflows\windows-ci.yml = .github\workflows\windows-ci.yml
1716
README.md = README.md
1817
CONTRIBUTING.md = CONTRIBUTING.md
19-
build\dotnet-releaser.toml = build\dotnet-releaser.toml
18+
.github\workflows\lint-pr.yml = .github\workflows\lint-pr.yml
2019
EndProjectSection
2120
EndProject
2221
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{C97E9975-E10A-4817-AE2C-4DD69C3C02D4}"

build/Common.prod.props

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
11
<Project>
22
<Import Project=".\Common.props" />
33

4-
<ItemGroup>
5-
<PackageReference Include="MinVer" Version="$(MinVerPkgVer)">
6-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7-
<PrivateAssets>all</PrivateAssets>
8-
</PackageReference>
9-
</ItemGroup>
10-
114
<PropertyGroup>
125
<GenerateDocumentationFile>true</GenerateDocumentationFile>
136
</PropertyGroup>
147

158
<PropertyGroup>
16-
<MinVerTagPrefix>v</MinVerTagPrefix>
17-
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
18-
</PropertyGroup>
19-
20-
<PropertyGroup>
9+
<VersionNumber>0.1.5</VersionNumber> <!--x-release-please-version -->
2110
<RepositoryType>git</RepositoryType>
2211
<RepositoryUrl>https://github.com/open-feature/dotnet-sdk</RepositoryUrl>
2312
<Description>OpenFeature is an open standard for feature flag management, created to support a robust feature flag ecosystem using cloud native technologies. OpenFeature will provide a unified API and SDK, and a developer-first, cloud-native implementation, with extensibility for open source and commercial offerings.</Description>
@@ -28,6 +17,9 @@
2817
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
2918
<Authors>OpenFeature Authors</Authors>
3019
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
20+
<Version>$(VersionNumber)</Version>
21+
<AssemblyVersion>$(VersionNumber)</AssemblyVersion>
22+
<FileVersion>$(VersionNumber)</FileVersion>
3123
</PropertyGroup>
3224

3325
<ItemGroup>

build/Common.props

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
Please sort alphabetically.
1919
Refer to https://docs.microsoft.com/nuget/concepts/package-versioning for semver syntax.
2020
-->
21-
<MinVerPkgVer>[4.1.0,5.0)</MinVerPkgVer>
2221
<MicrosoftExtensionsLoggerVer>[2.0,6.0)</MicrosoftExtensionsLoggerVer>
2322
<MicrosoftSourceLinkGitHubPkgVer>[1.0.0,2.0)</MicrosoftSourceLinkGitHubPkgVer>
2423
</PropertyGroup>

build/RELEASING.md

-9
This file was deleted.

build/dotnet-releaser.toml

-22
This file was deleted.

release-please-config.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "simple",
5+
"bump-minor-pre-major": true,
6+
"bump-patch-for-minor-pre-major": true,
7+
"versioning": "default",
8+
"extra-files": [
9+
"./build/Common.prod.props"
10+
]
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)