Skip to content

Commit 1badb50

Browse files
author
Bart Koelman
committed
Increase version number, use branch name in suffix
1 parent 2f0687d commit 1badb50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function CreateNuGetPackage {
7373
$versionSuffix = $suffixSegments -join "-"
7474
}
7575
else {
76-
# Get the version suffix from the auto-incrementing build number. Example: "123" => "pre-0123".
76+
# Get the version suffix from the auto-incrementing build number. Example: "123" => "master-0123".
7777
if ($env:APPVEYOR_BUILD_NUMBER) {
7878
$revision = "{0:D4}" -f [convert]::ToInt32($env:APPVEYOR_BUILD_NUMBER, 10)
79-
$versionSuffix = "pre-$revision"
79+
$versionSuffix = "$($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH ?? $env:APPVEYOR_REPO_BRANCH)-$revision"
8080
}
8181
else {
8282
$versionSuffix = "pre-0001"

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<VersionPrefix>4.2.0</VersionPrefix>
3+
<VersionPrefix>5.0.0</VersionPrefix>
44
<TargetFramework>$(NetCoreAppVersion)</TargetFramework>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
</PropertyGroup>

0 commit comments

Comments
 (0)