Browse Source

workflow: skip provenance when publishing commits

Evan You 1 năm trước cách đây
mục cha
commit
cac1e4e7f6
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      scripts/release.js

+ 2 - 1
scripts/release.js

@@ -507,7 +507,8 @@ async function publishPackages(version) {
   }
   }
   // add provenance metadata when releasing from CI
   // add provenance metadata when releasing from CI
   // canary release commits are not pushed therefore we don't need to add provenance
   // canary release commits are not pushed therefore we don't need to add provenance
-  if (process.env.CI && !isCanary) {
+  // also skip provenance if not publishing to actual npm
+  if (process.env.CI && !isCanary && !args.registry) {
     additionalPublishFlags.push('--provenance')
     additionalPublishFlags.push('--provenance')
   }
   }