Skip to content

Commit

Permalink
Update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Dec 2, 2021
1 parent 682ca49 commit dd11c16
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/publish.rn
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ pub async fn main() {
continue;
}

let cargo_toml = fs::read_to_string(`${project}/Cargo.toml`).await?;
let cargo_toml = toml::from_string(cargo_toml)?;

if !cargo_toml.package.get("publish").unwrap_or(true) {
continue;
}

let cargo = Command::new("cargo");
cargo.args(["publish", "--manifest-path", `${project}/Cargo.toml`, "--no-verify"]);

Expand Down

0 comments on commit dd11c16

Please sign in to comment.