feat(build): nushell release scripts

This commit is contained in:
doprz
2026-02-12 14:50:43 -06:00
committed by Diego Perez
parent ad79ccd83b
commit 8739c9aa3e
4 changed files with 235 additions and 0 deletions

29
scripts/release.nu Normal file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env nu
use check-deps.nu
use stage-release.nu
use publish-release.nu
# UTRP Release workflow
export def main [
--bump: string = "minor", # bump type: major, minor, or patch
--dry-run = true, # Dry run release workflow
] {
check-deps
if $dry_run {
print "\ndry-run todo:"
print "- stage-release"
print "- publish-release"
exit 0
}
mut vcs = ""
if not (which jj | is-empty) { $vcs = "jj" } else if not (which git | is-empty) { $vcs = "git"}
stage-release $bump $vcs
publish-release
print "Release workflow completed!"
}