From ca88d6567dcc8e341005836cb46dd14e54d35e64 Mon Sep 17 00:00:00 2001 From: zuiidea Date: Wed, 15 Apr 2026 11:42:49 +0800 Subject: [PATCH] fix(create): allow local npm publish without provenance Remove publishConfig.provenance; CI passes --provenance on npm publish so GitHub Actions still gets attestations with id-token: write. Made-with: Cursor --- .github/workflows/publish-create-antd-admin.yml | 4 ++-- packages/create/package.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-create-antd-admin.yml b/.github/workflows/publish-create-antd-admin.yml index b5b65d6..3521f99 100644 --- a/.github/workflows/publish-create-antd-admin.yml +++ b/.github/workflows/publish-create-antd-admin.yml @@ -62,8 +62,8 @@ jobs: working-directory: packages/create - name: Publish to npm - # provenance: see packages/create/package.json publishConfig (requires id-token: write) - run: npm publish --access public + # Provenance only in CI (OIDC). publishConfig must not force provenance or local npm publish fails. + run: npm publish --access public --provenance working-directory: packages/create env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/packages/create/package.json b/packages/create/package.json index 4656514..e48dcd6 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -20,8 +20,7 @@ "test:watch": "vitest" }, "publishConfig": { - "access": "public", - "provenance": true + "access": "public" }, "engines": { "node": ">=20"