Add npm plugin-zip build using @wordpress/scripts#4
Merged
Conversation
Wires up `npm run plugin-zip` via @wordpress/scripts so the repo can produce an installable hey-woo.zip without a manual file-gathering step. Explicit `files` field in package.json ensures LICENSE is always bundled (wp-scripts' default discovery skips it). .distignore updated to exclude vendor/, tools/, docs/, skills/, and the npm tooling files themselves; .gitignore updated to ignore *.zip build artefacts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
On v* tag push: runs npm ci + plugin-zip, attaches hey-woo.zip to a new GitHub release (with auto-generated release notes). On workflow_dispatch: same build but no release — zip is uploaded as a workflow artifact for manual inspection. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.jsonwith aplugin-zipscript powered by@wordpress/scripts— runnpm run plugin-zipto producehey-woo.zipfilesfield inpackage.jsonensuresLICENSEis always bundled (wp-scripts' default discovery omits it).distignoreto excludevendor/,tools/,docs/,skills/, and npm tooling files (package.json,package-lock.json,node_modules)*.zipto.gitignoreso build artefacts aren't committedpackage-lock.jsonfor reproducible buildsNo JS build step — this is a PHP-only plugin.
@wordpress/scriptsis a dev-only dependency.Zip contents verified locally:
Test plan
npm installcompletes without errorsnpm run plugin-zipproduceshey-woo.zipwith the expected contents (verify withunzip -l hey-woo.zip)hey-woo.zipinstalls and activates on a WordPress + WooCommerce site (upload via WP Admin > Plugins > Add New > Upload)🤖 Generated with Claude Code