Skip to content

Commit

Permalink
chore: patch semantic-release to skip v14 for regular release
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbuhmann committed Feb 21, 2023
1 parent b8cd046 commit 1e6a351
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions patches/semantic-release+19.0.3.patch
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
diff --git a/node_modules/semantic-release/lib/get-next-version.js b/node_modules/semantic-release/lib/get-next-version.js
index 8734922..1832caa 100644
index 8734922..b182d81 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
@@ -5,7 +5,14 @@ const {isSameChannel, getLatestVersion, tagsToVersions, highest} = require('./ut
module.exports = ({branch, nextRelease: {type, channel}, lastRelease, logger}) => {
let version;
if (lastRelease.version) {
- const {major, minor, patch} = semver.parse(lastRelease.version);
+ let {major, minor, patch} = semver.parse(lastRelease.version);
+
+ if (major === 13 && type === 'major') {
+ lastRelease.version = '14.0.0';
+ major = 14;
+ minor = 0;
+ patch = 0;
+ }

if (branch.type === 'prerelease') {
Expand Down

0 comments on commit 1e6a351

Please sign in to comment.