Browse Source

Tweak rootHasVersionBump logic (#8019)

Sarah Norris 11 months ago
parent
commit
0e66200aa3
1 changed files with 5 additions and 1 deletions
  1. 5 1
      theme-utils.mjs

+ 5 - 1
theme-utils.mjs

@@ -674,7 +674,11 @@ async function versionBumpThemes() {
 	//version bump the root project if there were changes to any of the themes
 	//version bump the root project if there were changes to any of the themes
 	const rootHasVersionBump = await checkProjectForVersionBump(hash);
 	const rootHasVersionBump = await checkProjectForVersionBump(hash);
 
 
-	if (versionBumpCount > 0 && !rootHasVersionBump) {
+	if (!rootHasVersionBump) {
+		console.log('No changes detected; version bump not required');
+	}
+
+	if (versionBumpCount > 0 && rootHasVersionBump) {
 		await executeCommand(`npm version patch --no-git-tag-version && git add package.json package-lock.json`);
 		await executeCommand(`npm version patch --no-git-tag-version && git add package.json package-lock.json`);
 		changesWereMade = true;
 		changesWereMade = true;
 	}
 	}