1313permissions :
1414 contents : read
1515
16+ env :
17+ NODE_VERSION : 22.21.1
18+ PUBLISH_NODE_VERSION : 24.12.0
19+ DENO_VERSION : 2.6.3
20+ BUN_VERSION : 1.3.9
21+
1622jobs :
1723 package :
1824 name : Build npm package
19- runs-on : ubuntu-latest
25+ runs-on : ubuntu-24.04
2026 timeout-minutes : 90
2127
2228 steps :
2834 - name : Setup Node
2935 uses : actions/setup-node@v6
3036 with :
31- node-version : 22
37+ node-version : ${{ env.NODE_VERSION }}
3238 cache : npm
3339
3440 - name : Cache Emscripten and CMake build
6975 vite-fixture :
7076 name : Vite 7 / ${{ matrix.mode }} / ${{ matrix.browser }}
7177 needs : package
72- runs-on : ubuntu-latest
78+ runs-on : ubuntu-24.04
7379 timeout-minutes : 30
7480 strategy :
7581 fail-fast : false
95101 - name : Setup Node
96102 uses : actions/setup-node@v6
97103 with :
98- node-version : 22
104+ node-version : ${{ env.NODE_VERSION }}
99105 cache : npm
100106
101107 - name : Install dependencies
@@ -120,7 +126,7 @@ jobs:
120126 webpack-fixture :
121127 name : Webpack 5 / ${{ matrix.mode }} / ${{ matrix.browser }}
122128 needs : package
123- runs-on : ubuntu-latest
129+ runs-on : ubuntu-24.04
124130 timeout-minutes : 30
125131 strategy :
126132 fail-fast : false
@@ -146,7 +152,7 @@ jobs:
146152 - name : Setup Node
147153 uses : actions/setup-node@v6
148154 with :
149- node-version : 22
155+ node-version : ${{ env.NODE_VERSION }}
150156 cache : npm
151157
152158 - name : Install dependencies
@@ -171,7 +177,7 @@ jobs:
171177 rollup-fixture :
172178 name : Rollup 4 / static / ${{ matrix.browser }}
173179 needs : package
174- runs-on : ubuntu-latest
180+ runs-on : ubuntu-24.04
175181 timeout-minutes : 30
176182 strategy :
177183 fail-fast : false
@@ -189,7 +195,7 @@ jobs:
189195 - name : Setup Node
190196 uses : actions/setup-node@v6
191197 with :
192- node-version : 22
198+ node-version : ${{ env.NODE_VERSION }}
193199 cache : npm
194200
195201 - name : Install dependencies
@@ -214,7 +220,7 @@ jobs:
214220 deno-fixture :
215221 name : Deno / solve
216222 needs : package
217- runs-on : ubuntu-latest
223+ runs-on : ubuntu-24.04
218224 timeout-minutes : 10
219225
220226 steps :
@@ -224,13 +230,13 @@ jobs:
224230 - name : Setup Node
225231 uses : actions/setup-node@v6
226232 with :
227- node-version : 22
233+ node-version : ${{ env.NODE_VERSION }}
228234 cache : npm
229235
230236 - name : Setup Deno
231237 uses : denoland/setup-deno@v2
232238 with :
233- deno-version : v2.x
239+ deno-version : ${{ env.DENO_VERSION }}
234240
235241 - name : Install dependencies
236242 run : npm ci
@@ -248,7 +254,7 @@ jobs:
248254 node-fixture :
249255 name : Node 22 / solve
250256 needs : package
251- runs-on : ubuntu-latest
257+ runs-on : ubuntu-24.04
252258 timeout-minutes : 10
253259
254260 steps :
@@ -258,7 +264,7 @@ jobs:
258264 - name : Setup Node
259265 uses : actions/setup-node@v6
260266 with :
261- node-version : 22
267+ node-version : ${{ env.NODE_VERSION }}
262268 cache : npm
263269
264270 - name : Install dependencies
@@ -277,7 +283,7 @@ jobs:
277283 bun-fixture :
278284 name : Bun / solve
279285 needs : package
280- runs-on : ubuntu-latest
286+ runs-on : ubuntu-24.04
281287 timeout-minutes : 10
282288
283289 steps :
@@ -287,13 +293,13 @@ jobs:
287293 - name : Setup Node
288294 uses : actions/setup-node@v6
289295 with :
290- node-version : 22
296+ node-version : ${{ env.NODE_VERSION }}
291297 cache : npm
292298
293299 - name : Setup Bun
294300 uses : oven-sh/setup-bun@v2
295301 with :
296- bun-version : latest
302+ bun-version : ${{ env.BUN_VERSION }}
297303
298304 - name : Install dependencies
299305 run : npm ci
@@ -318,7 +324,7 @@ jobs:
318324 - deno-fixture
319325 - node-fixture
320326 - bun-fixture
321- runs-on : ubuntu-latest
327+ runs-on : ubuntu-24.04
322328 timeout-minutes : 10
323329 if : ${{ startsWith(github.ref, 'refs/tags/v') && github.actor != 'nektos/act' }}
324330 permissions :
@@ -332,7 +338,7 @@ jobs:
332338 - name : Setup Node
333339 uses : actions/setup-node@v6
334340 with :
335- node-version : 24
341+ node-version : ${{ env.PUBLISH_NODE_VERSION }}
336342 registry-url : https://registry.npmjs.org
337343
338344 - name : Download package artifact
0 commit comments