Skip to content

Commit

Permalink
ci: add provenance back
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Aug 8, 2024
1 parent 6dbad4b commit 5836529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"packageManager": "[email protected]",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
"registry": "https://registry.npmjs.org/",
"provenance": true
}
}
2 changes: 1 addition & 1 deletion scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fs.writeFileSync(
console.info(`Publishing to npm with tag ${RELEASE_TAG}`);
const dryRun = RELEASE_DRY_RUN === 'true' ? ['--dry-run'] : [];
try {
await $`pnpm publish ${dryRun} --tag ${RELEASE_TAG} --no-git-checks`;
await $`pnpm publish ${dryRun} --tag ${RELEASE_TAG} --no-git-checks --provenance`;
console.info(`Published successfully`);
} catch (e) {
console.error(`Publish failed: ${e.message}`);
Expand Down

0 comments on commit 5836529

Please sign in to comment.