Skip to content

Commit

Permalink
bin: increment patch version
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Nov 12, 2024
1 parent ef979ae commit 03dc373
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/bump_version.nim
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ proc bumpVersionFile(versionFile: string): Version =
let pkgVersion = readFile(versionFile)
result = Version.init()
if pkgVersion.scanf("$i.$i.$i\n$.",
result.major, result.minor, result.patch,
result.pre, result.n):
inc result.n
result.major, result.minor, result.patch):
inc result.patch
createBranchAndCheckout(result)
writeFile(versionFile, $result & "\n")
else:
Expand Down

0 comments on commit 03dc373

Please sign in to comment.