From cac1e4e7f6701ab8d106cea6c6aabffd058de600 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 12 Aug 2024 07:15:42 +0800 Subject: [PATCH] workflow: skip provenance when publishing commits --- scripts/release.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release.js b/scripts/release.js index 7082b25ce..d56522a72 100644 --- a/scripts/release.js +++ b/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') }