From 95be74c845b3fca1f945e2440c581979f3621af4 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 16 Oct 2026 00:22:40 +0800 Subject: [PATCH] ci: upgrade npm before the npm Prepublish Test npm 11.19.x, which Node 24.21 bundles, crashes on a fresh Vite+ and npm install since vitest 4.1.12 was published ("Cannot read properties of null (reading 'children')"). Newer npm installs the same packages. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_0123r5HnanmW2VUrZ7VWDufH --- .github/workflows/prepublish-test.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/prepublish-test.yml b/.github/workflows/prepublish-test.yml index 355171363..931adcb64 100644 --- a/.github/workflows/prepublish-test.yml +++ b/.github/workflows/prepublish-test.yml @@ -76,6 +76,9 @@ jobs: with: node-version-file: .node-version cache: true + # The npm bundled with Node can lag behind fixes that fresh installs need. + - run: npm i -g npm && npm --version + if: ${{ matrix.pm == 'npm' }} - run: vp exec playwright install --with-deps chromium if: ${{ needs.scope.outputs.suite == 'full' && runner.os == 'Linux' }} - run: vp exec playwright install chromium