🐛(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
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user