Просмотр исходного кода

workflow: skip provenance when publishing commits

Evan You 1 год назад
Родитель
Сommit
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')
   }