From 17c98b79a7d849b187397914c0d2505fcb2890d6 Mon Sep 17 00:00:00 2001 From: Jason Matthew Suhari Date: Wed, 8 Jul 2026 21:31:00 -0700 Subject: [PATCH] fix: use node 24 trusted publishing Signed-off-by: Jason Matthew Suhari --- .github/workflows/release.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a94c68..e560977 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 - name: Create release commit and tag id: release @@ -92,10 +92,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 22 - - - name: Use latest npm for trusted publishing - run: npm install -g npm@latest + node-version: 24 - run: cargo fmt --check @@ -152,13 +149,13 @@ jobs: if ($env:NODE_AUTH_TOKEN) { "//registry.npmjs.org/:_authToken=$env:NODE_AUTH_TOKEN" | Set-Content -Path .npmrc Write-Output "Publishing with NPM_TOKEN secret." + npm publish --access public --provenance } else { Remove-Item Env:\NODE_AUTH_TOKEN -ErrorAction SilentlyContinue Write-Output "Publishing with npm trusted publishing/OIDC. Configure the package on npmjs.com if this fails with ENEEDAUTH." + npm publish --access public } - npm publish --access public --provenance - - name: Create GitHub release shell: pwsh env: @@ -203,10 +200,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 22 - - - name: Use latest npm for trusted publishing - run: npm install -g npm@latest + node-version: 24 - run: cargo fmt --check @@ -275,13 +269,13 @@ jobs: if ($env:NODE_AUTH_TOKEN) { "//registry.npmjs.org/:_authToken=$env:NODE_AUTH_TOKEN" | Set-Content -Path .npmrc Write-Output "Publishing with NPM_TOKEN secret." + npm publish --access public --provenance } else { Remove-Item Env:\NODE_AUTH_TOKEN -ErrorAction SilentlyContinue Write-Output "Publishing with npm trusted publishing/OIDC. Configure the package on npmjs.com if this fails with ENEEDAUTH." + npm publish --access public } - npm publish --access public --provenance - - name: Create GitHub release shell: pwsh env: