瀏覽代碼

Version Bump

Miguel 11 月之前
父節點
當前提交
2ba4dd2aa9

+ 1 - 0
olympique/functions.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Olympique functions and definitions

+ 1 - 0
olympique/patterns/404.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: 404

+ 1 - 0
olympique/patterns/archive.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: archive

+ 1 - 0
olympique/patterns/front-page.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: front-page

+ 1 - 0
olympique/patterns/hidden-404.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: 404

+ 1 - 0
olympique/patterns/hidden-comments.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Comments

+ 1 - 0
olympique/patterns/hidden-no-results.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: No results

+ 1 - 0
olympique/patterns/hidden-portfolio-hero.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Portfolio hero

+ 1 - 0
olympique/patterns/hidden-post-meta.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Post meta

+ 1 - 0
olympique/patterns/hidden-post-navigation.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Post navigation

+ 1 - 0
olympique/patterns/hidden-search.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Search

+ 1 - 0
olympique/patterns/hidden-sidebar.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: Sidebar

+ 1 - 0
olympique/patterns/home.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: home

+ 1 - 0
olympique/patterns/index.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: index

+ 1 - 0
olympique/patterns/post-meta.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: post-meta

+ 1 - 0
olympique/patterns/posts-list.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: List of posts without images, 1 column

+ 1 - 0
olympique/patterns/search.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: search

+ 1 - 0
olympique/patterns/single.php

@@ -1,3 +1,4 @@
+<?php declare( strict_types = 1 ); ?>
 <?php
 /**
  * Title: single

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
 	"name": "themes",
-	"version": "1.0.556",
+	"version": "1.0.557",
 	"lockfileVersion": 3,
 	"requires": true,
 	"packages": {
 		"": {
 			"name": "themes",
-			"version": "1.0.556",
+			"version": "1.0.557",
 			"license": "GPL-2.0",
 			"workspaces": [
 				"*"

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 	"name": "themes",
-	"version": "1.0.556",
+	"version": "1.0.557",
 	"description": "Automattic public themes",
 	"author": "automattic",
 	"license": "GPL-2.0",

+ 3 - 5
theme-utils.mjs

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