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