File tree Expand file tree Collapse file tree 5 files changed +26
-3
lines changed
Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 7171 # Apply version bumps from changesets
7272 pnpm changeset version
7373
74+ # Run version script for the plugin if it exists
75+ if [ -f "plugins/${{ steps.plugin.outputs.slug }}/package.json" ]; then
76+ echo "Checking for version script in plugins/${{ steps.plugin.outputs.slug }}/package.json"
77+ if cat "plugins/${{ steps.plugin.outputs.slug }}/package.json" | grep -q '"version".*:'; then
78+ echo "Running version script for ${{ steps.plugin.outputs.slug }}"
79+ cd "plugins/${{ steps.plugin.outputs.slug }}"
80+ npm run version
81+ cd ../..
82+ else
83+ echo "No version script found for ${{ steps.plugin.outputs.slug }}"
84+ fi
85+ else
86+ echo "No package.json found for plugin ${{ steps.plugin.outputs.slug }}"
87+ fi
88+
7489 # Configure git
7590 git config user.name "github-actions"
7691 git config user.email "[email protected] "
Original file line number Diff line number Diff line change 11# HWP Previews
22
3+ ## 0.0.5
4+
5+ ### Patch Changes
6+
7+ - [ #308 ] ( https://github.com/wpengine/hwptoolkit/pull/308 ) [ ` 8906c22 ` ] ( https://github.com/wpengine/hwptoolkit/commit/8906c22fa5192776f80bd69325037ec261dee64c ) Thanks [ @colinmurphy ] ( https://github.com/colinmurphy ) ! - docs: Updated docs for testing.
8+
39## 0.0.4
410
511### Patch Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @wpengine/hwp-previews-wordpress-plugin" ,
3- "version" : " 0.0.4 " ,
3+ "version" : " 0.0.5 " ,
44 "private" : true ,
55 "description" : " Headless Previews solution for WordPress: fully configurable preview URLs via the settings page." ,
66 "scripts" : {
77 "test" : " echo \" Error: no test specified\" && exit 1" ,
88 "test:e2e" : " wp-scripts test-playwright --config tests/e2e/playwright.config.js" ,
99 "test:e2e:debug" : " npm run test:e2e -- --debug" ,
1010 "wp-env" : " wp-env" ,
11- "version" : " ./scripts /sync-versions .sh"
11+ "version" : " ./bin /sync-package-version .sh"
1212 },
1313 "keywords" : [],
1414 "author" : " wpengine" ,
Original file line number Diff line number Diff line change 33 * This is a global bootstrap file for autoloading.
44 *
55 * @package Tests\HWP\Previews
6+ *
7+ * @link https://github.com/wpengine/hwptoolkit/blob/main/plugins/hwp-previews/TESTING.md
68 */
79
810// Ensure proper autoloading
Original file line number Diff line number Diff line change 55 "description" : " Webhooks solution for WordPress" ,
66 "scripts" : {
77 "test" : " echo \" Error: no test specified\" && exit 1" ,
8- "version" : " ./scripts /sync-versions .sh"
8+ "version" : " ./bin /sync-package-version .sh"
99 },
1010 "keywords" : [],
1111 "author" : " wpengine" ,
You can’t perform that action at this time.
0 commit comments