From 1e6a351f65652d3a008d0b91bd87bd21b8aae13e Mon Sep 17 00:00:00 2001 From: Kevin Buhmann Date: Tue, 21 Feb 2023 11:32:02 -0600 Subject: [PATCH] chore: patch `semantic-release` to skip v14 for regular release --- patches/semantic-release+19.0.3.patch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/patches/semantic-release+19.0.3.patch b/patches/semantic-release+19.0.3.patch index e78911fc99..1e99d93300 100644 --- a/patches/semantic-release+19.0.3.patch +++ b/patches/semantic-release+19.0.3.patch @@ -1,8 +1,8 @@ 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) { @@ -10,7 +10,10 @@ index 8734922..1832caa 100644 + 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') {