From f706537fddd739fb370d185b2edda79ee695c3c2 Mon Sep 17 00:00:00 2001 From: Yumiue <229866007@qq.com> Date: Wed, 22 Apr 2026 17:09:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dnpm=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b8585137..873bada0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,6 +6,9 @@ on: - "v*" workflow_dispatch: +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + permissions: contents: read pages: write @@ -27,6 +30,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: + version: 10.32.0 run_install: false - name: Setup Node From b07ec9a1a519549f900836f3b85fc845173c1fd3 Mon Sep 17 00:00:00 2001 From: xgopilot Date: Wed, 22 Apr 2026 09:28:39 +0000 Subject: [PATCH 2/2] fix(ci): scope node24 override to build job and simplify pages workflow Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: Yumiue <188874804+Yumiue@users.noreply.github.com> --- .github/workflows/pages.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 873bada0..d9e043e1 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -6,9 +6,6 @@ on: - "v*" workflow_dispatch: -env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true - permissions: contents: read pages: write @@ -20,12 +17,15 @@ concurrency: jobs: build: + env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + defaults: + run: + working-directory: www runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v5 - with: - fetch-depth: 1 - name: Setup pnpm uses: pnpm/action-setup@v4 @@ -44,11 +44,9 @@ jobs: uses: actions/configure-pages@v4 - name: Install dependencies - working-directory: www run: pnpm install --frozen-lockfile - name: Build with VitePress - working-directory: www run: pnpm docs:build - name: Upload artifact