diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.yml index 71a70648..f3e226ca 100644 --- a/.github/workflows/publish-mcp.yml +++ b/.github/workflows/publish-mcp.yml @@ -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