🐛(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:
9
.github/workflows/impress-frontend.yml
vendored
9
.github/workflows/impress-frontend.yml
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user