@@ -272,6 +272,60 @@ jobs:
272
272
${{ steps.artifacts.outputs.foundry_attestation }}
273
273
${{ steps.man.outputs.foundry_man }}
274
274
275
+ - name : Setup Bun (npm)
276
+ uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
277
+ env :
278
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
279
+ with :
280
+ bun-version : " latest"
281
+ scope : " @foundry-rs"
282
+ registry-url : " https://registry.npmjs.org"
283
+
284
+ - name : Install dependencies
285
+ working-directory : ./npm
286
+ run : bun install --frozen-lockfile
287
+
288
+ - name : Publish @foundry-rs/forge-${{ matrix.platform }}-${{ matrix.arch }} (npm)
289
+ shell : bash
290
+ working-directory : ./npm
291
+ env :
292
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
293
+ NPM_REGISTRY_URL : " https://registry.npmjs.org"
294
+ ARCH : ${{ matrix.arch }}
295
+ TARGET : ${{ matrix.target }}
296
+ PLATFORM : ${{ matrix.platform }}
297
+ OUT_DIR : target/${{ matrix.target }}/${{ env.PROFILE }}
298
+ VERSION_NAME : ${{ (env.IS_NIGHTLY == 'true' && 'nightly') || needs.prepare.outputs.tag_name }}
299
+ run : |-
300
+ bun ./scripts/prepublish.ts
301
+ bun run ./scripts/publish.ts ./@foundry-rs/forge-${{ env.PLATFORM }}-${{ env.ARCH }}
302
+
303
+ publish-npm :
304
+ name : Publish @foundry-rs/forge
305
+ runs-on : ubuntu-latest
306
+ needs : release
307
+ steps :
308
+ - uses : actions/checkout@v4
309
+ - uses : oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
310
+ with :
311
+ bun-version : " latest"
312
+ scope : " @foundry-rs"
313
+ registry-url : " https://registry.npmjs.org"
314
+
315
+ - name : Install dependencies
316
+ working-directory : ./npm
317
+ run : bun install --frozen-lockfile
318
+
319
+ - name : Publish @foundry-rs/forge
320
+ shell : bash
321
+ working-directory : ./npm
322
+ env :
323
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
324
+ NPM_REGISTRY_URL : " https://registry.npmjs.org"
325
+ run : |-
326
+ bun ./scripts/prepublish.ts
327
+ bun run ./scripts/publish.ts ./@foundry-rs/forge
328
+
275
329
cleanup :
276
330
name : Release cleanup
277
331
runs-on : ubuntu-latest
0 commit comments