Skip to content

Commit

Permalink
workflow: add provenance to npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Oct 9, 2024
1 parent 3a27f3b commit 3571fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.mts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ async function release() {
}

console.log(cyan('Publishing to npm...'))
if (spawn.sync('npm', ['publish', '--registry=https://registry.npmjs.org'], { stdio: 'inherit' }).status === 1) {
if (spawn.sync('npm', ['publish', '--registry=https://registry.npmjs.org', '--provenance'], { stdio: 'inherit' }).status === 1) {
return
}

Expand Down

0 comments on commit 3571fc5

Please sign in to comment.