From baa56303449c174b72d2194d0ee576342ce92753 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 1 Sep 2025 13:30:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(CI)=20fix=20npm=20fallback=20on=20?= =?UTF-8?q?bundle-size-check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding install-script to ensure Yarn is used explicitly during compressed-size-action to prevent npm peer conflict. --- .github/workflows/impress-frontend.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/impress-frontend.yml b/.github/workflows/impress-frontend.yml index 7c8a3caa..391a912d 100644 --- a/.github/workflows/impress-frontend.yml +++ b/.github/workflows/impress-frontend.yml @@ -177,12 +177,13 @@ jobs: uses: preactjs/compressed-size-action@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - build-script: "build" - pattern: "./out/**/*.{css,js,html}" + build-script: "app:build" + pattern: "apps/impress/out/**/*.{css,js,html}" exclude: "{**/*.map,**/node_modules/**}" minimum-change-threshold: 500 compression: "gzip" - cwd: "./src/frontend/apps/impress" + cwd: "./src/frontend" show-total: true - strip-hash: "\\b\\w+\\." + strip-hash: "[-_.][a-f0-9]{8,}(?=\\.(?:js|css|html)$)" omit-unchanged: true + install-script: "yarn install --frozen-lockfile"