Explorar el Código

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

Luke Parker hace 2 meses
padre
commit
2ef1a5991c
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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