Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
Fix CI: use root lockfile and npm workspaces for web builds
RaghavChamadiyae27c8ea6e893
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 01f0c958c..e982fa6b9 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -109,13 +109,13 @@ jobs:with:node-version: "20"cache: "npm"- cache-dependency-path: packages/web/package.json+ cache-dependency-path: package-lock.json- name: Install dependencies- run: cd packages/web && npm install+ run: npm ci --workspace packages/web- name: Type check- run: cd packages/web && npm run type-check+ run: npm run type-check --workspace packages/web- name: Lint- run: cd packages/web && npm run lint+ run: npm run lint --workspace packages/webdiff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 847fc3f50..d1826b23f 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -23,24 +23,31 @@ jobs:with:node-version: "20"cache: "npm"- cache-dependency-path: packages/web/package-lock.json+ cache-dependency-path: package-lock.json- name: Install dependencies- run: cd packages/web && npm install+ run: npm ci --workspace packages/web- name: Build Next.js (standalone)- run: cd packages/web && npm run build+ run: npm run build --workspace packages/webenv:NEXT_PUBLIC_REPOWISE_API_URL: ""- name: Package standalone outputrun: |- cd packages/web/.next/standalone- # Copy static files into standalone (Next.js requirement)- cp -r ../../.next/static .next/static- [ -d ../../public ] && cp -r ../../public public || true+ STANDALONE=packages/web/.next/standalone+ # Copy static assets into standalone (Next.js requirement)+ cp -r packages/web/.next/static $STANDALONE/packages/web/.next/static+ [ -d packages/web/public ] && cp -r packages/web/public $STANDALONE/packages/web/public || true+ # Flatten: move the nested server into a clean directory+ mkdir -p /tmp/repowise-web+ cp $STANDALONE/packages/web/server.js /tmp/repowise-web/+ cp -r $STANDALONE/packages/web/.next /tmp/repowise-web/.next+ [ -d $STANDALONE/packages/web/public ] && cp -r $STANDALONE/packages/web/public /tmp/repowise-web/public || true+ cp -r $STANDALONE/node_modules /tmp/repowise-web/node_modules 2>/dev/null || true+ [ -d $STANDALONE/packages/web/node_modules ] && cp -r $STANDALONE/packages/web/node_modules/* /tmp/repowise-web/node_modules/ 2>/dev/null || true# Create tarball- tar -czf /tmp/repowise-web.tar.gz .+ cd /tmp/repowise-web && tar -czf /tmp/repowise-web.tar.gz .- name: Upload web artifactuses: actions/upload-artifact@v4