Skip to content

Commit 84bbf43

Browse files
shijiashuaiqwencoder
andcommitted
ci: add FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 to all workflow jobs
Fixes Node.js 20 deprecation warnings by opting into Node.js 24 for all CI and Pages workflow jobs. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1 parent b9a7875 commit 84bbf43

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ jobs:
2626
format-check:
2727
name: Format Check
2828
runs-on: ubuntu-latest
29+
env:
30+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
2931
steps:
3032
- name: Checkout
3133
uses: actions/checkout@v4
@@ -67,6 +69,8 @@ jobs:
6769
docs-consistency:
6870
name: Documentation Consistency
6971
runs-on: ubuntu-latest
72+
env:
73+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
7074
steps:
7175
- name: Checkout
7276
uses: actions/checkout@v4
@@ -167,6 +171,8 @@ jobs:
167171
markdown-lint:
168172
name: Markdown Lint
169173
runs-on: ubuntu-latest
174+
env:
175+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
170176
steps:
171177
- name: Checkout
172178
uses: actions/checkout@v4
@@ -184,6 +190,8 @@ jobs:
184190
name: Build Information
185191
runs-on: ubuntu-latest
186192
needs: [format-check, docs-consistency]
193+
env:
194+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
187195
steps:
188196
- name: Display build requirements
189197
run: |

.github/workflows/pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
build:
2626
name: Build Pages
2727
runs-on: ubuntu-latest
28+
env:
29+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
2830
steps:
2931
- name: Checkout
3032
uses: actions/checkout@v4
@@ -78,6 +80,8 @@ jobs:
7880
url: ${{ steps.deployment.outputs.page_url }}
7981
runs-on: ubuntu-latest
8082
needs: build
83+
env:
84+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
8185
steps:
8286
- name: Deploy to GitHub Pages
8387
id: deployment

0 commit comments

Comments
 (0)