🐛(CI) fix npm fallback on bundle-size-check

Adding install-script to ensure Yarn is used explicitly
during compressed-size-action to prevent npm peer conflict.
This commit is contained in:
Anthony LC
2025-09-01 13:30:16 +02:00
parent e7b551caa4
commit baa5630344

View File

@@ -177,12 +177,13 @@ jobs:
uses: preactjs/compressed-size-action@v2 uses: preactjs/compressed-size-action@v2
with: with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"
build-script: "build" build-script: "app:build"
pattern: "./out/**/*.{css,js,html}" pattern: "apps/impress/out/**/*.{css,js,html}"
exclude: "{**/*.map,**/node_modules/**}" exclude: "{**/*.map,**/node_modules/**}"
minimum-change-threshold: 500 minimum-change-threshold: 500
compression: "gzip" compression: "gzip"
cwd: "./src/frontend/apps/impress" cwd: "./src/frontend"
show-total: true show-total: true
strip-hash: "\\b\\w+\\." strip-hash: "[-_.][a-f0-9]{8,}(?=\\.(?:js|css|html)$)"
omit-unchanged: true omit-unchanged: true
install-script: "yarn install --frozen-lockfile"