Skip to content

Commit cdf90e1

Browse files
authored
Merge pull request #317 from wpengine/chore-fix-tag-release-after-composer-file-added-to-plugins
chore: Fix tag release process
2 parents cb0d476 + 4dcff2d commit cdf90e1

File tree

8 files changed

+16
-43
lines changed

8 files changed

+16
-43
lines changed

.changeset/soft-owls-breathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@wpengine/hwp-previews-wordpress-plugin": patch
3+
---
4+
5+
chore: Renamed composer name to "hwp-previews" to fix composer installation issue.

.github/workflows/pre-release-tag.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
branches:
1111
- main
1212
paths:
13-
- "plugins/*/*"
13+
- "plugins/*/**"
1414

1515
permissions:
1616
contents: write
@@ -47,14 +47,14 @@ jobs:
4747
- name: Get changed plugin directory
4848
id: plugin
4949
run: |
50-
# Get files changed in the merged PR
51-
plugin=$(git diff --name-only HEAD~1 HEAD | grep '^plugins/' | head -1 | cut -d/ -f2)
52-
if [ -z "$plugin" ]; then
50+
# Get files changed in the merged PR, only match plugins/<plugin>/...
51+
plugin=$(git diff --name-only HEAD~1 HEAD | grep '^plugins/[^/]\+/' | grep -v '^plugins/composer-packages.json' | head -1 | cut -d/ -f2)
52+
if [ -z "$plugin" ]; then
5353
# Fallback: extract from branch name if no plugin changes detected
5454
branch_name="${{ github.head_ref }}"
5555
plugin=$(echo "$branch_name" | sed 's/release\/\([^-]*\)-.*/\1/')
56-
fi
57-
echo "plugin_slug=$plugin" >> $GITHUB_OUTPUT
56+
fi
57+
echo "plugin_slug=$plugin" >> $GITHUB_OUTPUT
5858
5959
- name: Validate plugin detection
6060
run: |

plugins/composer-packages.json

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
11
{
22
"packages": {
33
"wpengine/hwp-previews": {
4-
"0.0.7": {
5-
"name": "wpengine/hwp-previews",
6-
"version": "0.0.7",
7-
"type": "wordpress-plugin",
8-
"description": "A WordPress plugin for headless previews.",
9-
"homepage": "https://github.com/wpengine/hwptoolkit",
10-
"license": "GPL-2.0",
11-
"authors": [
12-
{
13-
"name": "WP Engine Headless OSS Development Team",
14-
"email": "[email protected]",
15-
"homepage": "https://wpengine.com/"
16-
}
17-
],
18-
"support": {
19-
"issues": "https://github.com/wpengine/hwptoolkit/issues",
20-
"email": "[email protected]"
21-
},
22-
"dist": {
23-
"url": "https://github.com/wpengine/hwptoolkit/releases/download/%40wpengine%2Fhwp-previews-wordpress-plugin-0.0.7/hwp-previews.zip",
24-
"type": "zip"
25-
},
26-
"require": {
27-
"composer/installers": "~1.0 || ~2.0"
28-
}
29-
},
304
"0.0.6": {
315
"name": "wpengine/hwp-previews",
326
"version": "0.0.6",

plugins/hwp-previews/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# HWP Previews
22

3-
## 0.0.7
4-
5-
### Patch Changes
6-
7-
- [#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.
8-
93
## 0.0.6
104

115
### Patch Changes

plugins/hwp-previews/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "wordpress-plugin",
44
"description": "A WordPress plugin for headless previews.",
55
"license": "GPL-2.0",
6-
"version": "0.0.7",
6+
"version": "0.0.6",
77
"authors": [
88
{
99
"name": "WP Engine Headless OSS Development Team",

plugins/hwp-previews/hwp-previews.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Author: WPEngine Headless OSS Team
88
* Author URI: https://github.com/wpengine
99
* Update URI: https://github.com/wpengine/hwptoolkit
10-
* Version: 0.0.7
10+
* Version: 0.0.6
1111
* Text Domain: hwp-previews
1212
* Domain Path: /languages
1313
* Requires at least: 6.0
@@ -67,7 +67,7 @@ function hwp_previews_init(): void {
6767
*/
6868
function hwp_previews_constants(): void {
6969
if ( ! defined( 'HWP_PREVIEWS_VERSION' ) ) {
70-
define( 'HWP_PREVIEWS_VERSION', '0.0.7' );
70+
define( 'HWP_PREVIEWS_VERSION', '0.0.6' );
7171
}
7272

7373
if ( ! defined( 'HWP_PREVIEWS_PLUGIN_DIR' ) ) {

plugins/hwp-previews/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wpengine/hwp-previews-wordpress-plugin",
3-
"version": "0.0.7",
3+
"version": "0.0.6",
44
"private": true,
55
"description": "Headless Previews solution for WordPress: fully configurable preview URLs via the settings page.",
66
"scripts": {

plugins/hwp-previews/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: GraphQL, Headless, Previews, WPGraphQL, React, Rest
44
Requires at least: 6.0
55
Tested up to: 6.8.1
66
Requires PHP: 7.4
7-
Stable tag: 0.0.7
7+
Stable tag: 0.0.6
88
License: GPL-2.0
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1010

0 commit comments

Comments
 (0)