82
82
target : i686-pc-windows-msvc
83
83
- host : windows-latest
84
84
target : aarch64-pc-windows-msvc
85
- - host : windows-latest
85
+ - host : windows-latest
86
86
target : x86_64-pc-windows-gnu
87
87
msystem : ucrt64
88
88
toolchain : ucrt-x86_64
@@ -343,23 +343,23 @@ jobs:
343
343
- arch : armv7
344
344
distro : ubuntu_latest
345
345
target : armv7-unknown-linux-gnueabihf
346
- # There is a bug that hangs the build when running npm
347
- # - arch: armv7
348
- # distro: alpine_latest
349
- # target: armv7-unknown-linux-musleabihf
350
- # This one has become very flaky as of late
351
- # - arch: ppc64le
352
- # distro: ubuntu_latest
353
- # target: powerpc64le-unknown-linux-gnu
354
- # use-nvm: true
346
+ # There is a bug that hangs the build when running npm
347
+ # - arch: armv7
348
+ # distro: alpine_latest
349
+ # target: armv7-unknown-linux-musleabihf
350
+ # This one has become very flaky as of late
351
+ # - arch: ppc64le
352
+ # distro: ubuntu_latest
353
+ # target: powerpc64le-unknown-linux-gnu
354
+ # use-nvm: true
355
355
- arch : s390x
356
356
distro : ubuntu_latest
357
357
target : s390x-unknown-linux-gnu
358
358
use-nvm : true
359
- # I could not find a way to install Node without compiling from source
360
- # - arch: riscv64
361
- # distro: ubuntu_latest
362
- # target: riscv64gc-unknown-linux-gnu
359
+ # I could not find a way to install Node without compiling from source
360
+ # - arch: riscv64
361
+ # distro: ubuntu_latest
362
+ # target: riscv64gc-unknown-linux-gnu
363
363
runs-on : ubuntu-latest
364
364
timeout-minutes : 120
365
365
steps :
@@ -489,6 +489,7 @@ jobs:
489
489
pull-requests : write # for writing comments
490
490
issues : write # for writing comments
491
491
contents : write # for creating a release
492
+ id-token : write # Required for OIDC
492
493
name : Publish
493
494
runs-on : ubuntu-latest
494
495
timeout-minutes : 15
@@ -507,8 +508,10 @@ jobs:
507
508
- name : Setup Node
508
509
uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
509
510
with :
510
- node-version : ${{ matrix.node }}
511
- check-latest : true
511
+ node-version : 24
512
+ registry-url : ' https://registry.npmjs.org'
513
+ - name : Update npm for publishing
514
+ run : npm install -g npm@latest
512
515
- name : Install and Cache Node Dependencies
513
516
uses : ./.github/actions/install-and-cache-node-deps
514
517
- name : Download all artifacts
@@ -526,12 +529,10 @@ jobs:
526
529
if git --no-pager log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
527
530
then
528
531
echo "Publishing regular release"
529
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
530
532
npm publish --access public
531
533
elif git --no-pager log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+$";
532
534
then
533
535
echo "Publishing beta release"
534
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
535
536
npm publish --tag beta --access public
536
537
else
537
538
echo "Not a release, skipping publish"
0 commit comments