Skip to content

Commit 97a6f89

Browse files
authored
ci: Fail publishing workflow if trying to release a duplicate version + bump to 6.0.0 (#127)
* Fail if trying to publish a duplicate NuGet package * Bump version to 6.0.0
1 parent 137590c commit 97a6f89

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ jobs:
8080
uses: actions/setup-dotnet@v4
8181

8282
# Publish all NuGet packages to NuGet.org
83-
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
84-
# If you retry a failed workflow, already published packages will be skipped without error.
8583
- name: Publish NuGet package
8684
run: |
8785
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
88-
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
86+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
8987
}
9088
9189
- name: Upload Release Asset

Flagsmith.FlagsmithClient/Flagsmith.FlagsmithClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
88
<PackageId>Flagsmith</PackageId>
99
<Title>Flagsmith</Title>
10-
<Version>5.4.3</Version>
10+
<Version>6.0.0</Version>
1111
<Authors>flagsmith</Authors>
1212
<Company>Flagsmith</Company>
1313
<PackageDescription>Client SDK for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://flagsmith.com/</PackageDescription>

0 commit comments

Comments
 (0)