Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(docs): install the workspace before the Astro build — TypeDoc compiles sdk/src

esengineb7aee456fb93
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 2e955387c..574775e20 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -22,10 +22,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
+ - uses: pnpm/action-setup@v4
+ with:
+ version: 10
+
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
+ cache: 'pnpm'
+
+ # TypeDoc (starlight-typedoc) compiles sdk/src against sdk/tsconfig.json,
+ # which resolves ambient types (@types/node, minigame-api-typings) from
+ # the sdk workspace's node_modules — install the workspace first.
+ - name: Install workspace dependencies
+ run: pnpm install --frozen-lockfile
- name: Install Doxygen
run: sudo apt-get update && sudo apt-get install -y doxygen graphviz