diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 6b85f4fd..f3ae57b1 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -29,6 +29,9 @@ jobs: - name: Install Deps run: yarn install --frozen-lockfile + - name: optimize images + run: "npx sharp-cli resize 800 --withoutEnlargement true --optimise true --progressive true --withMetadata false --input $(find ./docs \( -name cache -prune \) -o -name '*' -type f -exec file {} \; | awk -F: '{ if ($2 ~/[Ii]mage|EPS/) print $1}') --output '{dir}/{base}'" + - name: Build Docs env: NODE_OPTIONS: --max_old_space_size=4096