fix: semantic-release now working correctly in development
This commit is contained in:
@@ -7,7 +7,9 @@ try {
|
|||||||
const dryRunOutput = execSync('npx semantic-release --dry-run').toString();
|
const dryRunOutput = execSync('npx semantic-release --dry-run').toString();
|
||||||
|
|
||||||
// Extract the version number from the semantic-release output
|
// 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) {
|
if (!versionMatch) {
|
||||||
throw new Error('Version number not found in semantic-release output');
|
throw new Error('Version number not found in semantic-release output');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user