From 8c1f7744a51a88415520ba959c8d6c77762d76e2 Mon Sep 17 00:00:00 2001 From: Surya Prashanth Date: Sat, 28 Mar 2026 01:09:45 +0530 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20fix=20trusted=20publishers=20workf?= =?UTF-8?q?low=20=E2=80=94=20use=20Node=2022=20and=20npm=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Node >= 22.14.0 (npm >= 11.5.1) is required for trusted publisher OIDC auth. Provenance is generated automatically, no flag needed. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish-node-sdk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-node-sdk.yml b/.github/workflows/publish-node-sdk.yml index 0eb65e1..60eccaf 100644 --- a/.github/workflows/publish-node-sdk.yml +++ b/.github/workflows/publish-node-sdk.yml @@ -19,7 +19,7 @@ jobs: uses: actions/setup-node@v4 with: registry-url: 'https://registry.npmjs.org' - node-version: '20' + node-version: '22' - name: Enable corepack run: corepack enable pnpm @@ -31,7 +31,7 @@ jobs: run: pnpm build - name: Publish to npm - run: pnpm publish --access public --provenance + run: npm publish --access public - name: Get version from package.json id: package-version From 2a333439abbf09cc2bd8467e59988b1a54caf949 Mon Sep 17 00:00:00 2001 From: Surya Prashanth Date: Sat, 28 Mar 2026 01:20:29 +0530 Subject: [PATCH 2/2] chore: update publish workflow to match npm trusted publishers docs Use actions/checkout@v6, actions/setup-node@v6, and Node 24 as recommended by npm trusted publishers documentation. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/publish-node-sdk.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-node-sdk.yml b/.github/workflows/publish-node-sdk.yml index 60eccaf..6cff596 100644 --- a/.github/workflows/publish-node-sdk.yml +++ b/.github/workflows/publish-node-sdk.yml @@ -13,13 +13,13 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: + node-version: '24' registry-url: 'https://registry.npmjs.org' - node-version: '22' - name: Enable corepack run: corepack enable pnpm