Преглед изворни кода

workflow: skip provenance when publishing commits

Evan You пре 1 година
родитељ
комит
cac1e4e7f6
1 измењених фајлова са 2 додато и 1 уклоњено
  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
   // 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')
   }