Skip to content

Commit d82cc0b

Browse files
authored
publish to NPM with provenance (#1436)
Closes #1404
1 parent 4438fc8 commit d82cc0b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +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
2728
pull-requests: "write" # to create new pull requests for changesets
2829

2930
steps:

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

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

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

4041
if self.dry_run.get() {

0 commit comments

Comments
 (0)