From 26afaa76ea967432a5c6788d34addb08567d4f0d Mon Sep 17 00:00:00 2001 From: myw Date: Thu, 11 Jun 2026 01:04:14 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20publish.yml?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=AD=A3=20Node=20=E7=92=B0=E5=A2=83?= =?UTF-8?q?=E8=A8=AD=E7=BD=AE=E4=B8=A6=E6=B7=BB=E5=8A=A0=20registry-url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8581634..37f4c5f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,17 +10,16 @@ jobs: permissions: contents: read - id-token: write + id-token: write # OIDC 必須 steps: - uses: actions/checkout@v4 - # 移除 registry-url,單純使用 setup-node 準備 Node 環境 - uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' - run: npm install - # OIDC 和 provenance 會自動向官方 Registry 要權限 - run: npm publish --provenance \ No newline at end of file