Monorepo: cleanup.

This commit is contained in:
Vladimir Reznichenko 2024-09-19 13:47:16 +02:00
parent a35ff0459a
commit 24ab3558d2
3 changed files with 4 additions and 4 deletions

View File

@ -91,9 +91,9 @@ runs:
# PHPUnit/REST testing optimized installation of the deps: minimalistic and parallellized between PHP/JS. # PHPUnit/REST testing optimized installation of the deps: minimalistic and parallellized between PHP/JS.
# JS deps installation is abit hard-core, but all we need actually is wp-env and playwright - we are good at that regard. # JS deps installation is abit hard-core, but all we need actually is wp-env and playwright - we are good at that regard.
composer install --working-dir=./plugins/woocommerce --quiet & composer install --working-dir=./plugins/woocommerce --quiet &
pnpm install --filter='@woocommerce/plugin-woocommerce' --frozen-lockfile --prefer-offline --config.dedupe-peer-dependents=false --ignore-scripts pnpm install --filter='@woocommerce/plugin-woocommerce' --frozen-lockfile --config.dedupe-peer-dependents=false --ignore-scripts
else else
pnpm install ${{ steps.project-filters.outputs.install }} --frozen-lockfile --prefer-offline ${{ steps.project-filters.outputs.install != '' && '--config.dedupe-peer-dependents=false' || '' }} pnpm install ${{ steps.project-filters.outputs.install }} --frozen-lockfile ${{ steps.project-filters.outputs.install != '' && '--config.dedupe-peer-dependents=false' || '' }}
fi fi
# We want to include an option to build projects using this action so that we can make # We want to include an option to build projects using this action so that we can make
# sure that the build cache is always used when building projects. # sure that the build cache is always used when building projects.

View File

@ -50,7 +50,7 @@ jobs:
with: with:
repo-token: '${{ secrets.GITHUB_TOKEN }}' repo-token: '${{ secrets.GITHUB_TOKEN }}'
pattern: './{packages/js/!(*e2e*|*internal*|*test*|*plugin*|*create*),plugins/woocommerce-blocks}/{build,build-style}/**/*.{js,css}' pattern: './{packages/js/!(*e2e*|*internal*|*test*|*plugin*|*create*),plugins/woocommerce-blocks}/{build,build-style}/**/*.{js,css}'
install-script: 'pnpm install --filter="@woocommerce/plugin-woocommerce..." --frozen-lockfile --prefer-offline --config.dedupe-peer-dependents=false --ignore-scripts' install-script: 'pnpm install --filter="@woocommerce/plugin-woocommerce..." --frozen-lockfile --config.dedupe-peer-dependents=false --ignore-scripts'
build-script: '--filter="@woocommerce/plugin-woocommerce" build' build-script: '--filter="@woocommerce/plugin-woocommerce" build'
clean-script: '--if-present buildclean' clean-script: '--if-present buildclean'
minimum-change-threshold: 100 minimum-change-threshold: 100

View File

@ -6,5 +6,5 @@ if [ -n "$changedManifests" ]; then
printf "It was a change in the following file(s) - refreshing dependencies:\n" printf "It was a change in the following file(s) - refreshing dependencies:\n"
printf " %s\n" $changedManifests printf " %s\n" $changedManifests
pnpm install --frozen-lockfile --prefer-offline pnpm install --frozen-lockfile
fi fi