Skip to content

Commit

Permalink
workflow: skip provenance when publishing commits
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 11, 2024
1 parent 119a0b3 commit cac1e4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit cac1e4e

Please sign in to comment.