Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Dec 13, 2023
1 parent 225d89c commit c46ea19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ let isTag =
githubRef.StartsWith tagPrefix

let nugetVersion =
if changelog.Unreleased.IsNone && isTag then
match (changelog.Unreleased, isTag) with
| (Some _unreleased, true) -> failwith "Shouldn't publish a git tag for changes outside a real release"
| (None, true) ->
changelog.LatestEntry.NuGetVersion
else
| (_, false) ->
let current = changelog.LatestEntry.NuGetVersion |> SemVer.parse
let bumped = { current with
Minor = current.Minor + 1u
Expand Down

0 comments on commit c46ea19

Please sign in to comment.