Repository navigation
Commit b55f4f7
committed
fix: scope OIDC automatic provenance to the current publish
The auto-enable path wrote the derived decision to the shared config at
user scope. During npm publish --workspaces the config is reused across
packages, so later workspaces inherited provenance: true; a later
workspace with publishConfig["provenance-file"] then received both
provenance and provenanceFile, tripping the new conflict check with
EUSAGE and making publish success depend on workspace order.
opts.provenance = true is sufficient on its own because the same opts
object is passed through otplease to libnpmpublish. Explicit user
configuration such as --provenance is unaffected.
Refs: #9882 (comment)
Signed-off-by: Yunseo Kim <[email protected]>1 parent 6907480 commit b55f4f7
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| |||
0 commit comments