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'); }