mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: install main branch deps before building, then reinstall PR deps
Main branch imports @vueuse/router which isn't in PR's node_modules. Need both: main deps for building main, PR deps for running QA scripts.
This commit is contained in:
5
.github/workflows/pr-qa.yaml
vendored
5
.github/workflows/pr-qa.yaml
vendored
@@ -104,10 +104,11 @@ jobs:
|
||||
mv dist dist-after
|
||||
git stash --include-untracked || true
|
||||
git checkout origin/main -- .
|
||||
# Build main with PR branch's node_modules (skip typecheck and reinstall)
|
||||
# Install main's deps (may differ from PR), then build
|
||||
pnpm install --frozen-lockfile || pnpm install --no-frozen-lockfile
|
||||
pnpm exec vite build
|
||||
mv dist dist-before
|
||||
# Restore PR branch files and deps
|
||||
# Restore PR branch files and reinstall PR deps
|
||||
git checkout HEAD -- .
|
||||
git stash pop || true
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
Reference in New Issue
Block a user