Skip to content

Commit

Permalink
chore: use triple-equals operator in sematic-release patch
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbuhmann committed Feb 21, 2023
1 parent 21f6583 commit b8cd046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patches/semantic-release+19.0.3.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/node_modules/semantic-release/lib/get-next-version.js b/node_modules/semantic-release/lib/get-next-version.js
index 8734922..2fee533 100644
index 8734922..1832caa 100644
--- a/node_modules/semantic-release/lib/get-next-version.js
+++ b/node_modules/semantic-release/lib/get-next-version.js
@@ -5,7 +5,11 @@ const {isSameChannel, getLatestVersion, tagsToVersions, highest} = require('./ut
Expand All @@ -9,7 +9,7 @@ index 8734922..2fee533 100644
- const {major, minor, patch} = semver.parse(lastRelease.version);
+ let {major, minor, patch} = semver.parse(lastRelease.version);
+
+ if (major == 13 && type == 'major') {
+ if (major === 13 && type === 'major') {
+ major = 14;
+ }

Expand Down

0 comments on commit b8cd046

Please sign in to comment.