Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/soft-owls-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/hwp-previews-wordpress-plugin": patch
---

chore: Renamed composer name to "hwp-previews" to fix composer installation issue.
12 changes: 6 additions & 6 deletions .github/workflows/pre-release-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches:
- main
paths:
- "plugins/*/*"
- "plugins/*/**"

permissions:
contents: write
Expand Down Expand Up @@ -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>/...
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: |
Expand Down
26 changes: 0 additions & 26 deletions plugins/composer-packages.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 0 additions & 6 deletions plugins/hwp-previews/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions plugins/hwp-previews/hwp-previews.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/hwp-previews/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading