ci: install the root dependencies before building the mcp package

The shell build needs the root's esbuild, Tailwind and React.
This commit is contained in:
dayuan.jiang
2026-10-11 20:56:07 +09:00
parent 7be9b5ace8
commit 1f27036de1
+10 -1
View File
@@ -35,7 +35,9 @@ jobs:
with:
node-version: 24
cache: "npm"
cache-dependency-path: packages/mcp-server/package-lock.json
cache-dependency-path: |
package-lock.json
packages/mcp-server/package-lock.json
registry-url: "https://registry.npmjs.org"
# Trusted publishing requires npm >= 11.5.1
@@ -54,6 +56,13 @@ jobs:
echo "publish=true" >> "$GITHUB_OUTPUT"
fi
# The canvas shell (scripts/build-shell.mjs) is bundled from the web
# app's components with the root's esbuild, Tailwind and React
- name: Install repository dependencies
if: steps.version.outputs.publish == 'true'
working-directory: .
run: npm ci
- name: Install dependencies
if: steps.version.outputs.publish == 'true'
run: npm ci