Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Fix PyPI publish workflow frontend build detection

LearningCircuitcc941a23c996
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index bd8c97bef8..466166defe 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -23,23 +23,25 @@ jobs:
- name: Check for frontend assets
id: check
run: |
- if [ -f "package.json" ] && [ -f "package-lock.json" ]; then
+ if [ -f "package.json" ]; then
echo "has-frontend=true" >> $GITHUB_OUTPUT
- echo "Found package.json and package-lock.json - will build frontend"
+ echo "Found package.json - will build frontend"
else
echo "has-frontend=false" >> $GITHUB_OUTPUT
- echo "No frontend build files found - skipping"
+ echo "ERROR: No package.json found - frontend build is required for PyPI releases"
+ exit 1
fi
- name: Build frontend
if: steps.check.outputs.has-frontend == 'true'
run: |
# Install dependencies from root package.json
- npm ci --ignore-scripts --no-audit --no-fund
+ # Use npm install since package-lock.json might not exist
+ npm install --ignore-scripts --no-audit --no-fund
# Build with Vite (outputs to src/local_deep_research/web/static/dist)
npm run build --ignore-scripts
# Create build marker
- echo '{"status":"complete","built":"$(date -Iseconds)"}' > src/local_deep_research/web/static/.frontend-built
+ echo "{\"status\":\"complete\",\"built\":\"$(date -Iseconds)\"}" > src/local_deep_research/web/static/.frontend-built
- name: Upload frontend artifacts
if: steps.check.outputs.has-frontend == 'true'