Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/adamziel/preview-check-composer-vite/releases/download/ci-artifacts/pr-1-658785746a5fa31ba2d7207eeb852db9196a9941-playground-demo-plugin.zippreview-in-playground-button-v3-example-composer-vite
Realistic example for the WordPress Playground v3 reusable preview workflows: a plugin that needs both composer install (PSR-4 autoload + a runtime dep) and npm run build (Vite-bundled admin JS) before it can run.
Demonstrates that the v3 reusable workflows handle a multi-toolchain build with no per-step boilerplate — caller setup is still ~20 lines across two files.
What's in here
playground-demo-plugin.php— main plugin file. Loadsvendor/autoload.php, calls into the namespacedPlaygroundDemo\Noticeclass.src/Notice.php— autoloaded class, uses a real Composer dep (psr/log) to provecomposer installran.composer.json— declares PSR-4 + a runtime require.src-js/admin.js+vite.config.js+package.json— Vite source and config, output goes todist/admin.js(no hash, fixed name) so PHP can enqueue it without reading a manifest..github/workflows/pr-preview-build.yml— runscomposer install --no-dev, thennpm install && npm run build, stages the result with rsync excludes, zips it..github/workflows/pr-preview-publish.yml— exposes the zip, posts the preview button.
The reusable workflows are pinned to the in-development branch
adamziel/build-command-reusable-workflows of
WordPress/action-wp-playground-pr-preview. Repin to @v3 once that lands.
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.