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

chaokunyang pushed a commit to branch speedup_build
in repository https://gitbox.apache.org/repos/asf/fory-site.git

commit 6dd54d3ddacf4b8eb79b65f95c4f9e21e39eb774
Author: 慕白 <[email protected]>
AuthorDate: Mon Apr 20 16:07:57 2026 +0800

    ci: use node 24 for site workflows
---
 .github/workflows/deploy.yml     | 14 +++++++++++---
 .github/workflows/link-check.yml |  2 +-
 .github/workflows/lint.yml       |  2 +-
 package.json                     |  2 +-
 4 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 51806fc2e..96a2f77ba 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -30,7 +30,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-node@v4
         with:
-          node-version: 18.x
+          node-version: 24.x
 
       - uses: actions/setup-python@v3
         with:
@@ -43,9 +43,17 @@ jobs:
           python script.py
           ls -lR ../../i18n/zh-CN/ ../../i18n/eu-US/
 
-      - name: NPM Install & Build
+      - name: NPM Install
+        run: npm install
+
+      - name: Restore Docusaurus cache
+        uses: actions/cache@v4
+        with:
+          path: node_modules/.cache
+          key: ${{ runner.os }}-node24-docusaurus-${{ 
hashFiles('package-lock.json') }}
+
+      - name: Build
         run: |
-          npm install
           npm run download-avatars
           npm run build
           cp .asf.yaml build/.asf.yaml
diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml
index 7d6812c3f..76ebc9279 100644
--- a/.github/workflows/link-check.yml
+++ b/.github/workflows/link-check.yml
@@ -15,7 +15,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-node@v4
         with:
-          node-version: "18"
+          node-version: "24"
 
       # - name: markdown-link-check
       #   uses: gaurav-nelson/github-action-markdown-link-check@v1
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 1c01b0e75..bb92a7b45 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -29,7 +29,7 @@ jobs:
       - name: 🚀 Use Node.js
         uses: actions/setup-node@v3
         with:
-          node-version: '18.x'
+          node-version: '24.x'
       - run: npm install -g [email protected]
       - run: markdownlint '**/*.md' --ignore node_modules
 
diff --git a/package.json b/package.json
index 180aa396e..432853cf5 100644
--- a/package.json
+++ b/package.json
@@ -60,6 +60,6 @@
     ]
   },
   "engines": {
-    "node": ">=18.0"
+    "node": ">=24.0"
   }
 }


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

Reply via email to