Skip to content

Commit

Permalink
Tweak rootHasVersionBump logic (#8019)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan committed Aug 14, 2024
1 parent 447714a commit 0e66200
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion theme-utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,11 @@ async function versionBumpThemes() {
//version bump the root project if there were changes to any of the themes
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`);
changesWereMade = true;
}
Expand Down

0 comments on commit 0e66200

Please sign in to comment.