From afb761b76543f51009de5d10a4398eb9498fd21e Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Wed, 2 Jul 2025 14:22:02 +0100 Subject: [PATCH 1/3] Ensures that the changes are for plugins not files at root level of plugins. --- .github/workflows/pre-release-tag.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-release-tag.yml b/.github/workflows/pre-release-tag.yml index a3348a33..90d59e18 100644 --- a/.github/workflows/pre-release-tag.yml +++ b/.github/workflows/pre-release-tag.yml @@ -10,7 +10,7 @@ on: branches: - main paths: - - "plugins/*/*" + - "plugins/*/**" permissions: contents: write @@ -47,14 +47,14 @@ jobs: - name: Get changed plugin directory id: plugin run: | - # Get files changed in the merged PR - plugin=$(git diff --name-only HEAD~1 HEAD | grep '^plugins/' | head -1 | cut -d/ -f2) - if [ -z "$plugin" ]; then + # Get files changed in the merged PR, only match plugins//... + plugin=$(git diff --name-only HEAD~1 HEAD | grep '^plugins/[^/]\+/' | grep -v '^plugins/composer-packages.json' | head -1 | cut -d/ -f2) + if [ -z "$plugin" ]; then # Fallback: extract from branch name if no plugin changes detected branch_name="${{ github.head_ref }}" plugin=$(echo "$branch_name" | sed 's/release\/\([^-]*\)-.*/\1/') - fi - echo "plugin_slug=$plugin" >> $GITHUB_OUTPUT + fi + echo "plugin_slug=$plugin" >> $GITHUB_OUTPUT - name: Validate plugin detection run: | From ea051aac234d630d313d20f4b8aa7ec59e3bf4d8 Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Wed, 2 Jul 2025 14:25:19 +0100 Subject: [PATCH 2/3] Reverted previews version back to 0.0.6 as we never released 0.0.7 due to workflow failure. --- plugins/composer-packages.json | 26 -------------------------- plugins/hwp-previews/CHANGELOG.md | 6 ------ plugins/hwp-previews/composer.json | 2 +- plugins/hwp-previews/hwp-previews.php | 4 ++-- plugins/hwp-previews/package.json | 2 +- plugins/hwp-previews/readme.txt | 2 +- 6 files changed, 5 insertions(+), 37 deletions(-) diff --git a/plugins/composer-packages.json b/plugins/composer-packages.json index b73a3886..add54a44 100644 --- a/plugins/composer-packages.json +++ b/plugins/composer-packages.json @@ -1,32 +1,6 @@ { "packages": { "wpengine/hwp-previews": { - "0.0.7": { - "name": "wpengine/hwp-previews", - "version": "0.0.7", - "type": "wordpress-plugin", - "description": "A WordPress plugin for headless previews.", - "homepage": "https://github.com/wpengine/hwptoolkit", - "license": "GPL-2.0", - "authors": [ - { - "name": "WP Engine Headless OSS Development Team", - "email": "headless-oss@wpengine.com", - "homepage": "https://wpengine.com/" - } - ], - "support": { - "issues": "https://github.com/wpengine/hwptoolkit/issues", - "email": "support@wpengine.com" - }, - "dist": { - "url": "https://github.com/wpengine/hwptoolkit/releases/download/%40wpengine%2Fhwp-previews-wordpress-plugin-0.0.7/hwp-previews.zip", - "type": "zip" - }, - "require": { - "composer/installers": "~1.0 || ~2.0" - } - }, "0.0.6": { "name": "wpengine/hwp-previews", "version": "0.0.6", diff --git a/plugins/hwp-previews/CHANGELOG.md b/plugins/hwp-previews/CHANGELOG.md index ae770a38..22017c07 100644 --- a/plugins/hwp-previews/CHANGELOG.md +++ b/plugins/hwp-previews/CHANGELOG.md @@ -1,11 +1,5 @@ # HWP Previews -## 0.0.7 - -### Patch Changes - -- [#315](https://github.com/wpengine/hwptoolkit/pull/315) [`a59bd2b`](https://github.com/wpengine/hwptoolkit/commit/a59bd2b22e76b0c10044b4c0cd5bc0e15e23e4bf) Thanks [@colinmurphy](https://github.com/colinmurphy)! - chore: Fixed previews composer name to "hwp-previews" to fix composer install issue. - ## 0.0.6 ### Patch Changes diff --git a/plugins/hwp-previews/composer.json b/plugins/hwp-previews/composer.json index 1baf9819..a42adcfe 100644 --- a/plugins/hwp-previews/composer.json +++ b/plugins/hwp-previews/composer.json @@ -3,7 +3,7 @@ "type": "wordpress-plugin", "description": "A WordPress plugin for headless previews.", "license": "GPL-2.0", - "version": "0.0.7", + "version": "0.0.6", "authors": [ { "name": "WP Engine Headless OSS Development Team", diff --git a/plugins/hwp-previews/hwp-previews.php b/plugins/hwp-previews/hwp-previews.php index 24b9dcb2..4060c0bc 100644 --- a/plugins/hwp-previews/hwp-previews.php +++ b/plugins/hwp-previews/hwp-previews.php @@ -7,7 +7,7 @@ * Author: WPEngine Headless OSS Team * Author URI: https://github.com/wpengine * Update URI: https://github.com/wpengine/hwptoolkit - * Version: 0.0.7 + * Version: 0.0.6 * Text Domain: hwp-previews * Domain Path: /languages * Requires at least: 6.0 @@ -67,7 +67,7 @@ function hwp_previews_init(): void { */ function hwp_previews_constants(): void { if ( ! defined( 'HWP_PREVIEWS_VERSION' ) ) { - define( 'HWP_PREVIEWS_VERSION', '0.0.7' ); + define( 'HWP_PREVIEWS_VERSION', '0.0.6' ); } if ( ! defined( 'HWP_PREVIEWS_PLUGIN_DIR' ) ) { diff --git a/plugins/hwp-previews/package.json b/plugins/hwp-previews/package.json index 1489eaf2..396e1f04 100644 --- a/plugins/hwp-previews/package.json +++ b/plugins/hwp-previews/package.json @@ -1,6 +1,6 @@ { "name": "@wpengine/hwp-previews-wordpress-plugin", - "version": "0.0.7", + "version": "0.0.6", "private": true, "description": "Headless Previews solution for WordPress: fully configurable preview URLs via the settings page.", "scripts": { diff --git a/plugins/hwp-previews/readme.txt b/plugins/hwp-previews/readme.txt index 1852adf3..69412a59 100644 --- a/plugins/hwp-previews/readme.txt +++ b/plugins/hwp-previews/readme.txt @@ -4,7 +4,7 @@ Tags: GraphQL, Headless, Previews, WPGraphQL, React, Rest Requires at least: 6.0 Tested up to: 6.8.1 Requires PHP: 7.4 -Stable tag: 0.0.7 +Stable tag: 0.0.6 License: GPL-2.0 License URI: https://www.gnu.org/licenses/gpl-2.0.html From 4dcff2dd2bbb36b62e525fa534b9d16faafaaa32 Mon Sep 17 00:00:00 2001 From: Colin Murphy Date: Wed, 2 Jul 2025 14:26:59 +0100 Subject: [PATCH 3/3] Added Changeset --- .changeset/soft-owls-breathe.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/soft-owls-breathe.md diff --git a/.changeset/soft-owls-breathe.md b/.changeset/soft-owls-breathe.md new file mode 100644 index 00000000..e0e79e37 --- /dev/null +++ b/.changeset/soft-owls-breathe.md @@ -0,0 +1,5 @@ +--- +"@wpengine/hwp-previews-wordpress-plugin": patch +--- + +chore: Renamed composer name to "hwp-previews" to fix composer installation issue.