An example plugin repository with a workflow script that installs Node dependencies.
The workflow does the following:
- Checkout the repository
- Instals Node with the Node Action
- Runs
npm installto install dependencies inpackage.json - Stores NPM packages in a cache named
npm - Runs
npm run minify-csswhich minifies the css and copies the output to/css - Creates a build artifact with name
wpcomwhich is required for WordPress.com's GitHub Deployment feature, while also excluding files from the deployment, likepackage.json,style.css, andREADME.md