Skip to content

Commit 29a0917

Browse files
authored
Fixed the patch version when creating a new release.
2 parents c252d47 + e17f45d commit 29a0917

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/cd.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CD
22

33
on:
4-
release:
5-
types: [created]
64
workflow_dispatch:
75

86
permissions:

src/renderer/scripts/version.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ const match = gitDescribe.match(/^v?(\d+)\.(\d+)\.(\d+)-(\d+)-g[0-9a-f]+$/)
2020
const [, , minor, patch] = match
2121
let patchVersion = parseInt(patch)
2222

23-
if (minor !== minorVersion) {
23+
if (minor === minorVersion) {
24+
++patchVersion
25+
} else {
2426
patchVersion = 0
2527
}
2628

0 commit comments

Comments
 (0)