Try reducing blocks build size (#43344)
* Try reducing blocks build size * Add changefile(s) from automation for the following project(s): woocommerce * Only set NODE_ENV if its not already defined --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
fa62e63037
commit
ce3a38ac55
|
@ -1,27 +1,35 @@
|
||||||
.*
|
.*
|
||||||
.*/
|
.*/
|
||||||
*.lock
|
*.lock
|
||||||
|
*.map
|
||||||
*.md
|
*.md
|
||||||
*.zip
|
*.zip
|
||||||
/bin/
|
/bin/
|
||||||
/build/
|
/build/
|
||||||
/changelog/
|
/changelog/
|
||||||
/node_modules/
|
/node_modules/
|
||||||
|
/patches/
|
||||||
|
/playwright-report/
|
||||||
|
/storybook/
|
||||||
/tests/
|
/tests/
|
||||||
/e2e/
|
/e2e/
|
||||||
babel.config.js
|
babel.config.js
|
||||||
|
blocks.ini
|
||||||
composer.*
|
composer.*
|
||||||
contributors.html
|
contributors.html
|
||||||
docker-compose.yaml
|
docker-compose.yaml
|
||||||
Dockerfile
|
Dockerfile
|
||||||
Gruntfile.js
|
Gruntfile.js
|
||||||
|
global.d.ts
|
||||||
none
|
none
|
||||||
package-lock.json
|
package-lock.json
|
||||||
package.json
|
package.json
|
||||||
packages/woocommerce-admin/docs
|
packages/woocommerce-admin/docs
|
||||||
|
packages/woocommerce-blocks/docs
|
||||||
phpcs.xml
|
phpcs.xml
|
||||||
phpunit.xml
|
phpunit.xml
|
||||||
phpunit.xml.dist
|
phpunit.xml.dist
|
||||||
|
postcss.config.js
|
||||||
project.json
|
project.json
|
||||||
README.md
|
README.md
|
||||||
renovate.json
|
renovate.json
|
||||||
|
|
|
@ -18,7 +18,11 @@ find "$PROJECT_PATH/assets/css/." ! -name '.gitkeep' -type f -exec rm -f {} + &&
|
||||||
|
|
||||||
echo "Installing PHP and JS dependencies..."
|
echo "Installing PHP and JS dependencies..."
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
echo "Running JS Build..."
|
echo "Running JS Build..."
|
||||||
|
if [ -z "${NODE_ENV}" ]; then
|
||||||
|
export NODE_ENV=production
|
||||||
|
fi
|
||||||
pnpm --filter='@woocommerce/plugin-woocommerce' build || exit "$?"
|
pnpm --filter='@woocommerce/plugin-woocommerce' build || exit "$?"
|
||||||
echo "Cleaning up PHP dependencies..."
|
echo "Cleaning up PHP dependencies..."
|
||||||
composer install --no-dev || exit "$?"
|
composer install --no-dev || exit "$?"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
Comment: This PR affects build tooling and a change entry is not required.
|
||||||
|
|
Loading…
Reference in New Issue