workflow: skip provenance when publishing commits

This commit is contained in:
Evan You 2024-08-12 07:15:42 +08:00
parent 119a0b3832
commit cac1e4e7f6
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 1 deletions

View 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')
}