From b450fae87ffa97fbe5b909f2d3d9f7248277a2cc Mon Sep 17 00:00:00 2001 From: Volodymyr Kolesnykov Date: Thu, 22 Sep 2022 16:52:42 +0300 Subject: [PATCH] Reduce bundle size --- .github/workflows/push-tag.yml | 2 +- bin/build-archive.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-tag.yml b/.github/workflows/push-tag.yml index 3a4e0b10f..ef2a098e9 100644 --- a/.github/workflows/push-tag.yml +++ b/.github/workflows/push-tag.yml @@ -43,7 +43,7 @@ jobs: run: | composer install --no-dev --no-interaction composer remove --update-no-dev --no-interaction composer/installers cweagans/composer-patches - rm -rf composer.lock composer.json patches vendor/madwizard/webauthn/{.github,conformance,tests} vendor/psr/log/Psr/Log/Test + rm -rf composer.lock composer.json patches vendor/madwizard/webauthn/{.github,conformance,tests} vendor/psr/log/Psr/Log/Test vendor/typisttech - name: Deploy to wordpress.org uses: 10up/action-wordpress-plugin-deploy@stable diff --git a/bin/build-archive.sh b/bin/build-archive.sh index 05d3a9543..266239d1f 100755 --- a/bin/build-archive.sh +++ b/bin/build-archive.sh @@ -3,7 +3,7 @@ ( cd .. && \ git archive --format=tar --prefix=two-factor-provider-webauthn/ HEAD | (cd /var/tmp/ && tar xf -) && \ - (cd /var/tmp/two-factor-provider-webauthn && composer install --no-dev --no-interaction && composer remove --update-no-dev --no-interaction composer/installers cweagans/composer-patches && rm -rf composer.lock patches vendor/madwizard/webauthn/.github vendor/madwizard/webauthn/conformance vendor/madwizard/webauthn/tests vendor/psr/log/Psr/Log/Test) && \ + (cd /var/tmp/two-factor-provider-webauthn && composer install --no-dev --no-interaction && composer remove --update-no-dev --no-interaction composer/installers cweagans/composer-patches && rm -rf composer.lock patches vendor/madwizard/webauthn/.github vendor/madwizard/webauthn/conformance vendor/madwizard/webauthn/tests vendor/psr/log/Psr/Log/Test vendor/typisttech) && \ (cd /var/tmp && zip -r -9 two-factor-provider-webauthn.zip two-factor-provider-webauthn) && \ mv /var/tmp/two-factor-provider-webauthn.zip two-factor-provider-webauthn.zip )