@ucdjs/release-scripts 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2444,6 +2444,12 @@ async function prepareWorkflow(options) {
|
|
|
2444
2444
|
});
|
|
2445
2445
|
if (!hasChangesToPush.ok) exitWithError("Failed to sync release changes.", void 0, hasChangesToPush.error);
|
|
2446
2446
|
if (!hasChangesToPush.value) {
|
|
2447
|
+
if (allUpdates.length === 0) {
|
|
2448
|
+
logger.info("No changes to commit and no packages to release. Nothing to do.");
|
|
2449
|
+
const checkoutResult = await checkoutBranch(options.branch.default, options.workspaceRoot);
|
|
2450
|
+
if (!checkoutResult.ok) exitWithError(`Failed to checkout branch: ${options.branch.default}`, void 0, checkoutResult.error);
|
|
2451
|
+
return null;
|
|
2452
|
+
}
|
|
2447
2453
|
const prResult = await syncPullRequest({
|
|
2448
2454
|
github: options.githubClient,
|
|
2449
2455
|
releaseBranch: options.branch.release,
|