From ab6b909fbaa8b59ef701a29e660dd09aa670b3de Mon Sep 17 00:00:00 2001 From: Patrick Toal Date: Sat, 22 Jun 2024 14:39:50 -0400 Subject: [PATCH] fix: semantic-release now working correctly in development --- generate-version.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate-version.js b/generate-version.js index a32a9f2..3c94b3d 100644 --- a/generate-version.js +++ b/generate-version.js @@ -7,7 +7,9 @@ try { const dryRunOutput = execSync('npx semantic-release --dry-run').toString(); // Extract the version number from the semantic-release output - const versionMatch = dryRunOutput.match(/next version in .* is ([\d.]+)/); + const versionMatch = dryRunOutput.match( + /The next release version is ([\S]+)/ + ); if (!versionMatch) { throw new Error('Version number not found in semantic-release output'); }