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