Skip to content

Commit

Permalink
build: Bump workspace version as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed May 17, 2024
1 parent ee4a2e6 commit 74e30d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bump-versions.nu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
cd ..

let version = "x.x.x"

open Cargo.toml | update workspace.package.version $version | save -f Cargo.toml

let crates = ls crates | where type == dir | get name | filter {|n| $"($n)/Cargo.toml" | path exists } | each {|p| split row "/" | last}

def update-manifest [] {
Expand All @@ -14,6 +18,7 @@ def update-manifest [] {
def replace-manifest [] {
let path = $"crates/($in)/Cargo.toml"
open $path | update-manifest | to toml | save -f $path
$path
}

$crates | each {|p| $p | replace-manifest}
$crates | each {|p| $p | replace-manifest} | prepend Cargo.toml

0 comments on commit 74e30d6

Please sign in to comment.