Skip to content

Commit e3b7b1e

Browse files
committed
fix: remove provenance=true from .npmrc — breaks local publish
provenance=true in .npmrc causes 'Automatic provenance generation not supported for provider: null' on any local npm publish because there is no OIDC provider outside of GitHub Actions. Provenance is generated automatically by npm when publishing via OIDC Trusted Publishing from CI.
1 parent ef4c54c commit e3b7b1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.npmrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# The scope is owned by the cfxdevkit npm organization.
33
@cfxdevkit:registry=https://registry.npmjs.org/
44

5-
# Provenance attestations are generated automatically by npm when publishing
6-
# via OIDC Trusted Publishing (no --provenance flag needed).
7-
# This line is a fallback for manual local publishes only.
5+
# NOTE: do NOT set provenance=true here.
6+
# When publishing via OIDC Trusted Publishing from GitHub Actions, npm generates
7+
# provenance automatically — no flag needed.
8+
# Setting it here breaks manual `npm publish` (local machine has no OIDC provider).
89
# See: https://docs.npmjs.com/trusted-publishers
9-
provenance=true

0 commit comments

Comments
 (0)