From 8d9ef3bf21337998e1a99adbe07c911798941f52 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Sun, 17 Aug 2025 21:51:34 +0100 Subject: [PATCH] chore: use npm oicd connection for publishing --- .github/workflows/release-please.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f7c4889193..e4854c8151 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -5,6 +5,10 @@ on: branches: - main +permissions: + id-token: write # Required for OIDC + contents: read + jobs: release-please: outputs: @@ -38,5 +42,3 @@ jobs: node-version: lts/* registry-url: 'https://registry.npmjs.org' - run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}