From 813b2a0c170240d4c799d4dbb1f2e1bd6e07e2bc Mon Sep 17 00:00:00 2001 From: Xiwei Pan <90967972+isPANN@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:37:54 -0800 Subject: [PATCH 1/2] Build the Open Question Board with its TypeScript build autoresearch-gadgets#24 replaced website/build.py with a Node build (npm run build -> website/dist), so the docs deploy failed with "can't open file .../website/build.py". Build the board with npm after Node is set up; the output path and dist/registry.json are unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a17a8eb7a..a4ccc3897 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,9 +33,6 @@ jobs: - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 - - name: Build Open Question Board - run: uv run --project open-questions-source/website --locked python open-questions-source/website/build.py - - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable with: toolchain: '1.99.0' @@ -49,6 +46,11 @@ jobs: node-version: '24.21.0' cache: npm + - name: Build Open Question Board + run: | + npm --prefix open-questions-source/website ci + npm --prefix open-questions-source/website run build + - name: Install mdBook run: | mkdir -p "$HOME/bin" From 06c01b365d3597ff2d95f7cf07711e504123db72 Mon Sep 17 00:00:00 2001 From: Xiwei Pan <90967972+isPANN@users.noreply.github.com> Date: Tue, 3 Nov 2026 23:41:22 -0800 Subject: [PATCH 2/2] Build the board through its stable action interface autoresearch-gadgets changes often and its action.yml is the documented interface for embedding sites: build into an output directory with registry.json at its root. Calling it instead of the board's npm scripts keeps upstream build changes from breaking this deploy. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a4ccc3897..7c95531e0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,6 +31,12 @@ jobs: token: ${{ secrets.PROJECT_READ_TOKEN }} persist-credentials: false + # The board's stable build interface; its internals may change upstream. + - name: Build Open Question Board + uses: ./open-questions-source + with: + output: open-questions-board + - uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable @@ -46,11 +52,6 @@ jobs: node-version: '24.21.0' cache: npm - - name: Build Open Question Board - run: | - npm --prefix open-questions-source/website ci - npm --prefix open-questions-source/website run build - - name: Install mdBook run: | mkdir -p "$HOME/bin" @@ -69,7 +70,7 @@ jobs: - name: Build and verify deployment artifact run: | uv run --python 3.12.14 --no-project --with-requirements scripts/website-requirements.txt python -m playwright install --with-deps chromium firefox webkit - uv run --python 3.12.14 --no-project --with-requirements scripts/website-requirements.txt python scripts/check_website.py --output book --open-questions open-questions-source/website/dist + uv run --python 3.12.14 --no-project --with-requirements scripts/website-requirements.txt python scripts/check_website.py --output book --open-questions open-questions-board npm audit --audit-level=moderate git diff --exit-code -- Cargo.lock package-lock.json