Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

validate that wp versions match in release workflow #111

Merged
merged 1 commit into from
Oct 26, 2023
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
11 changes: 10 additions & 1 deletion .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,18 @@ jobs:
- name: Install PHP Dependencies
run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist

- name: npm install
- name: NPM Install
run: npm install --legacy-peer-deps

- name: Validate WP Versions
if: ${{ (github.repository == 'bluehost/mojo-marketplace-wp-plugin') && (github.event.release.prerelease == false) }}
run: |
wpEnvVersion=`grep "WordPress/WordPress#tags/" .wp-env.json | grep -Eo "[0-9\.]*"`
pluginHeaderTestedVersion=`grep "Tested up to:" mojo-marketplace.php | grep -Eo "[0-9\.]*"`
echo "wp-env version: $wpEnvVersion"
echo "Plugin header tested version: $pluginHeaderTestedVersion"
[[ "$wpEnvVersion" == "$pluginHeaderTestedVersion" ]] || exit 1

- name: Build JavaScript
run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "WordPress/WordPress#tags/6.3.1",
"core": "WordPress/WordPress#tags/6.3.2",
"config": {
"WP_DEBUG": true,
"WP_DEBUG_LOG": true,
Expand Down
Loading