瀏覽代碼

fix(ci): setup Node 24 before bun install for node-gyp (#35076)

Luke Parker 3 月之前
父節點
當前提交
2ef1a5991c
共有 1 個文件被更改,包括 7 次插入 和 0 次删除
  1. 7 0
      .github/actions/setup-bun/action.yml

+ 7 - 0
.github/actions/setup-bun/action.yml

@@ -8,6 +8,13 @@ inputs:
 runs:
 runs:
   using: "composite"
   using: "composite"
   steps:
   steps:
+    # node-gyp@latest (invoked via bunx for native install scripts) requires Node >=22;
+    # some runner images ship an older system Node on PATH
+    - name: Setup Node
+      uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
+      with:
+        node-version: "24"
+
     - name: Get baseline download URL
     - name: Get baseline download URL
       id: bun-url
       id: bun-url
       shell: bash
       shell: bash