Skip to content

Commit 3571fc5

Browse files
committed
workflow: add provenance to npm publish
1 parent 3a27f3b commit 3571fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async function release() {
151151
}
152152

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

0 commit comments

Comments
 (0)