]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: skip provenance when publishing commits
authorEvan You <evan@vuejs.org>
Sun, 11 Aug 2024 23:15:42 +0000 (07:15 +0800)
committerEvan You <evan@vuejs.org>
Sun, 11 Aug 2024 23:15:42 +0000 (07:15 +0800)
scripts/release.js

index 7082b25ce884007ecac6f134cce5092846297553..d56522a720e3936ec2f10cf8d27cce1905df2cad 100644 (file)
@@ -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')
   }