This is an automated email from the ASF dual-hosted git repository.

tomsun28 pushed a commit to branch fix/doc-deploy-pnpm-cache
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git

commit 17bd9f7e732acaa10ea928638b54bb14464c3d41
Author: tomsun28 <[email protected]>
AuthorDate: Sat Jul 25 21:09:27 2026 +0800

    ci(doc-deploy): fix pnpm cache setup and upgrade Node to 22
    
    The doc-deploy workflow failed with "Unable to locate executable file:
    pnpm" because actions/setup-node (with cache: pnpm) ran before pnpm was
    installed. Reorder the steps so pnpm/action-setup runs first, matching
    the order already used in doc-build-test.yml. Also pin pnpm to v10 and
    upgrade Node.js from 20 (deprecated on GitHub Actions runners) to 22
    in both doc workflows to clear the deprecation warning.
    
    Generated with [Devin](https://devin.ai)
    
    Co-Authored-By: Devin 
<158243242+devin-ai-integration[bot]@users.noreply.github.com>
---
 .github/workflows/doc-build-test.yml |  2 +-
 .github/workflows/doc-deploy.yml     | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/doc-build-test.yml 
b/.github/workflows/doc-build-test.yml
index d69770fe7c..44c6dfe20f 100644
--- a/.github/workflows/doc-build-test.yml
+++ b/.github/workflows/doc-build-test.yml
@@ -43,7 +43,7 @@ jobs:
           version: 10
       - uses: actions/setup-node@v4
         with:
-          node-version: '20'
+          node-version: '22'
           cache: pnpm
           cache-dependency-path: home/pnpm-lock.yaml
       - uses: actions/setup-python@v4
diff --git a/.github/workflows/doc-deploy.yml b/.github/workflows/doc-deploy.yml
index 2c962afdcc..dbb9616fa1 100644
--- a/.github/workflows/doc-deploy.yml
+++ b/.github/workflows/doc-deploy.yml
@@ -47,20 +47,20 @@ jobs:
         with:
           fetch-depth: 0
 
+      # Setup pnpm (must run before setup-node so the pnpm cache can be 
configured)
+      - name: Setup pnpm
+        uses: pnpm/action-setup@v4
+        with:
+          version: 10
+
       # Setup Node.js environment
       - name: Setup Node.js
         uses: actions/setup-node@v4
         with:
-          node-version: '20'
+          node-version: '22'
           cache: pnpm
           cache-dependency-path: home/pnpm-lock.yaml
 
-      # Setup pnpm
-      - name: Setup pnpm
-        uses: pnpm/action-setup@v4
-        with:
-          version: latest
-
       # Install dependencies in home directory
       - name: Install Dependencies
         working-directory: home


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to