From 81c9d0c0e1df1b684f05f51a414ebcec0970f166 Mon Sep 17 00:00:00 2001 From: heggria Date: Mon, 6 Jul 2026 20:22:29 +0800 Subject: [PATCH 1/2] fix(website): split npm ci from postinstall to avoid npm crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first deploy-website run after the pnpm-migration fix failed with "npm error Exit handler never called!" during `npm ci` (8 min, no output, then an internal npm crash — likely the postinstall fumadocs-mdx handler tripping npm's exit machinery). Split the install into three visible steps so a crash is diagnosable and npm's postinstall handler is bypassed: - `npm ci --ignore-scripts` (install only) - `npm run prepare-source` (fumadocs-mdx, ~10ms, its own step) - `npm run build` (next build) Verified locally: ci --ignore-scripts + prepare-source + build all succeed. --- .github/workflows/deploy-website.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index e056ea7..f2d95f9 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -42,7 +42,11 @@ jobs: - name: Install dependencies working-directory: website - run: npm ci + run: npm ci --ignore-scripts + + - name: Generate MDX source + working-directory: website + run: npm run prepare-source - name: Build working-directory: website From 0ae26e517d32a93380e3ff1c0853678403f34636 Mon Sep 17 00:00:00 2001 From: heggria Date: Mon, 6 Jul 2026 20:26:39 +0800 Subject: [PATCH 2/2] chore: trigger CI