Skip to content

Commit d574b20

Browse files
Add run-number as version-suffix
1 parent e242ddd commit d574b20

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131
- name: Install dependencies
3232
run: dotnet restore
3333
- name: Build
34-
run: dotnet build --configuration Release --no-restore
34+
run: dotnet build --configuration Release --no-restore --version-suffix ${{ github.run_number }}
3535
- name: Test
3636
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
3737

3838
- name: Create the package
39-
run: dotnet pack --configuration Release System.Text.Json.Extensions
39+
run: dotnet pack --configuration Release --version-suffix ${{ github.run_number }} System.Text.Json.Extensions
4040
- name: Get Version
4141
id: get_version
4242
run: |

System.Text.Json.Extensions/System.Text.Json.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<PackageId>System.Text.Json.Extensions</PackageId>
6-
<Version>1.0.9</Version>
6+
<VersionPrefix>1.0.9</VersionPrefix>
77
<Authors>TheConstructor</Authors>
88
<PackageDescription>This package tries to collect some extensions and converters that ease the usage of System.Text.Json.</PackageDescription>
99
<RepositoryUrl>https://github.com/TheConstructor/System.Text.Json.Extensions</RepositoryUrl>

0 commit comments

Comments
 (0)