Skip to content

Commit cac1e4e

Browse files
committed
workflow: skip provenance when publishing commits
1 parent 119a0b3 commit cac1e4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ async function publishPackages(version) {
507507
}
508508
// add provenance metadata when releasing from CI
509509
// canary release commits are not pushed therefore we don't need to add provenance
510-
if (process.env.CI && !isCanary) {
510+
// also skip provenance if not publishing to actual npm
511+
if (process.env.CI && !isCanary && !args.registry) {
511512
additionalPublishFlags.push('--provenance')
512513
}
513514

0 commit comments

Comments
 (0)