mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: reinstall PR deps after main branch build to restore @google/generative-ai
The main branch build step was running pnpm install with main's lockfile, which removed @google/generative-ai from node_modules. Move the reinstall to after restoring PR files so the QA recording script can find its deps.
This commit is contained in:
7
.github/workflows/pr-qa.yaml
vendored
7
.github/workflows/pr-qa.yaml
vendored
@@ -104,14 +104,13 @@ jobs:
|
||||
mv dist dist-after
|
||||
git stash --include-untracked || true
|
||||
git checkout origin/main -- .
|
||||
pnpm install --frozen-lockfile
|
||||
# Use vite directly — skip typecheck since main may have TS errors
|
||||
# when built with the PR branch's lockfile/deps
|
||||
# Build main with PR branch's node_modules (skip typecheck and reinstall)
|
||||
pnpm exec vite build
|
||||
mv dist dist-before
|
||||
# Restore PR branch files from HEAD (not 'git checkout -' which needs @{-1})
|
||||
# Restore PR branch files and deps
|
||||
git checkout HEAD -- .
|
||||
git stash pop || true
|
||||
pnpm install --frozen-lockfile
|
||||
mv dist-after dist
|
||||
echo "Built both: dist-before/ (main) and dist/ (PR)"
|
||||
ls -la dist-before/index.html dist/index.html
|
||||
|
||||
Reference in New Issue
Block a user