From c4584bd6dfed9bbf10362eda6c0bc65bbce550a0 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Fri, 19 Jul 2024 13:07:48 +0200 Subject: [PATCH] Monorepo: zips build script update (frozen lock files) (#49640) --- plugins/woo-ai/bin/build-zip.sh | 2 +- plugins/woo-ai/changelog/dev-try-faster-building-zip | 4 ++++ plugins/woocommerce-beta-tester/bin/build-zip.sh | 2 +- .../changelog/dev-try-faster-building-zip | 4 ++++ plugins/woocommerce/bin/build-zip.sh | 2 +- plugins/woocommerce/changelog/dev-try-faster-building-zip | 4 ++++ 6 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 plugins/woo-ai/changelog/dev-try-faster-building-zip create mode 100644 plugins/woocommerce-beta-tester/changelog/dev-try-faster-building-zip create mode 100644 plugins/woocommerce/changelog/dev-try-faster-building-zip diff --git a/plugins/woo-ai/bin/build-zip.sh b/plugins/woo-ai/bin/build-zip.sh index 58f3b85d114..012e0a422f0 100755 --- a/plugins/woo-ai/bin/build-zip.sh +++ b/plugins/woo-ai/bin/build-zip.sh @@ -10,7 +10,7 @@ rm -rf "$BUILD_PATH" mkdir -p "$DEST_PATH" echo "Installing PHP and JS dependencies..." -pnpm install +pnpm install --frozen-lockfile echo "Running JS Build..." pnpm --filter='@woocommerce/plugin-woo-ai' build || exit "$?" diff --git a/plugins/woo-ai/changelog/dev-try-faster-building-zip b/plugins/woo-ai/changelog/dev-try-faster-building-zip new file mode 100644 index 00000000000..310400b9388 --- /dev/null +++ b/plugins/woo-ai/changelog/dev-try-faster-building-zip @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Monorepo: minor tweaks in zip building script (use frozen lock file when installing dependecies). diff --git a/plugins/woocommerce-beta-tester/bin/build-zip.sh b/plugins/woocommerce-beta-tester/bin/build-zip.sh index 76656aced28..55e4505ba43 100755 --- a/plugins/woocommerce-beta-tester/bin/build-zip.sh +++ b/plugins/woocommerce-beta-tester/bin/build-zip.sh @@ -10,7 +10,7 @@ rm -rf "$BUILD_PATH" mkdir -p "$DEST_PATH" echo "Installing PHP and JS dependencies..." -pnpm install +pnpm install --frozen-lockfile echo "Running JS Build..." pnpm --filter='@woocommerce/plugin-woocommerce-beta-tester' build || exit "$?" diff --git a/plugins/woocommerce-beta-tester/changelog/dev-try-faster-building-zip b/plugins/woocommerce-beta-tester/changelog/dev-try-faster-building-zip new file mode 100644 index 00000000000..310400b9388 --- /dev/null +++ b/plugins/woocommerce-beta-tester/changelog/dev-try-faster-building-zip @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Monorepo: minor tweaks in zip building script (use frozen lock file when installing dependecies). diff --git a/plugins/woocommerce/bin/build-zip.sh b/plugins/woocommerce/bin/build-zip.sh index 1e3f2050f21..6fd67f824fd 100755 --- a/plugins/woocommerce/bin/build-zip.sh +++ b/plugins/woocommerce/bin/build-zip.sh @@ -14,7 +14,7 @@ echo "Cleaning up assets..." find "$PROJECT_PATH/assets/css/." ! -name '.gitkeep' -type f -exec rm -f {} + && find "$PROJECT_PATH/assets/client/." ! -name '.gitkeep' -type f -exec rm -f {} + && find "$PROJECT_PATH/assets/js/." ! -name '.gitkeep' -type f -exec rm -f {} + echo "Installing PHP and JS dependencies..." -pnpm install +pnpm install --frozen-lockfile echo "Running JS Build..." if [ -z "${NODE_ENV}" ]; then diff --git a/plugins/woocommerce/changelog/dev-try-faster-building-zip b/plugins/woocommerce/changelog/dev-try-faster-building-zip new file mode 100644 index 00000000000..310400b9388 --- /dev/null +++ b/plugins/woocommerce/changelog/dev-try-faster-building-zip @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Monorepo: minor tweaks in zip building script (use frozen lock file when installing dependecies).