Skip to content

Commit a3b8c14

Browse files
authored
Remove unnecessary --provenance flag (#1490)
With [trusted publishing](https://docs.npmjs.com/trusted-publishers), `npm` _automatically_ generates and attaches [provenance attestations](https://docs.npmjs.com/generating-provenance-statements) to each published package. Addresses #1489 (comment).
1 parent c5540f1 commit a3b8c14

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
permissions:
2626
contents: "write" # to create new branches and releases
27-
id-token: "write" # OIDC token for publishing to NPM with provenance
27+
id-token: "write" # OIDC token (needed for trusted publishing)
2828
pull-requests: "write" # to create new pull requests for changesets
2929

3030
steps:

crates/infra/cli/src/commands/publish/npm/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ impl NpmController {
3535

3636
let mut command = Command::new("pnpm")
3737
.args(["publish", package_dir.unwrap_str()])
38-
.flag("--provenance")
3938
.property("--access", "public");
4039

4140
if self.dry_run.get() {

0 commit comments

Comments
 (0)