@@ -178,7 +178,7 @@ strip-release tag:
178178# Bumps the patch version, updates changelog, and creates a git tag (Windows)
179179[windows ]
180180bump-patch-version :
181- $currentVersion = (Select-String -Path 'crates/bamboo/Cargo.toml' -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value; $parts = $currentVersion.Split('.'); $newPatch = [int]$parts[2] + 1; $newVersion = "$($parts[0]).$($parts[1]).$newPatch"; Write-Host "Bumping version from $currentVersion to $newVersion"; (Get-Content 'crates/bamboo/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; git add crates/bamboo/Cargo.toml apps/cli/Cargo.toml; git commit -m "chore: bump version to v$newVersion"; git cliff --tag "v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m "chore: update changelog for v$newVersion"; git tag "v$newVersion"; Write-Host ""; Write-Host "Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
181+ $currentVersion = (Select-String -Path 'crates/bamboo/Cargo.toml' -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value; $parts = $currentVersion.Split('.'); $newPatch = [int]$parts[2] + 1; $newVersion = "$($parts[0]).$($parts[1]).$newPatch"; Write-Host "Bumping version from $currentVersion to $newVersion"; (Get-Content 'crates/bamboo/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "bamboo-ssg = \{ version = `".*?`"", "bamboo-ssg = { version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; git add crates/bamboo/Cargo.toml apps/cli/Cargo.toml; git commit -m "chore: bump version to v$newVersion"; git cliff --tag "v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m "chore: update changelog for v$newVersion"; git tag "v$newVersion"; Write-Host ""; Write-Host "Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
182182
183183# Bumps the patch version, updates changelog, and creates a git tag (Unix)
184184[unix ]
@@ -192,6 +192,7 @@ bump-patch-version:
192192 echo " Bumping version from $CURRENT_VERSION to $NEW_VERSION"
193193 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" crates/ bamboo/ Cargo.toml
194194 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
195+ sed -i " s/bamboo-ssg = { version = \" $CURRENT_VERSION\" /bamboo-ssg = { version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
195196 git add crates/ bamboo/ Cargo.toml apps/ cli/ Cargo.toml
196197 git commit -m " chore: bump version to v$NEW_VERSION"
197198 git cliff --tag " v$NEW_VERSION" -o CHANGELOG.md
@@ -205,7 +206,7 @@ bump-patch-version:
205206# Bumps the minor version, updates changelog, and creates a git tag (Windows)
206207[windows ]
207208bump-minor-version :
208- $currentVersion = (Select-String -Path 'crates/bamboo/Cargo.toml' -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value; $parts = $currentVersion.Split('.'); $newMinor = [int]$parts[1] + 1; $newVersion = "$($parts[0]).$newMinor.0"; Write-Host "Bumping version from $currentVersion to $newVersion"; (Get-Content 'crates/bamboo/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; git add crates/bamboo/Cargo.toml apps/cli/Cargo.toml; git commit -m "chore: bump version to v$newVersion"; git cliff --tag "v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m "chore: update changelog for v$newVersion"; git tag "v$newVersion"; Write-Host ""; Write-Host "Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
209+ $currentVersion = (Select-String -Path 'crates/bamboo/Cargo.toml' -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value; $parts = $currentVersion.Split('.'); $newMinor = [int]$parts[1] + 1; $newVersion = "$($parts[0]).$newMinor.0"; Write-Host "Bumping version from $currentVersion to $newVersion"; (Get-Content 'crates/bamboo/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "bamboo-ssg = \{ version = `".*?`"", "bamboo-ssg = { version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; git add crates/bamboo/Cargo.toml apps/cli/Cargo.toml; git commit -m "chore: bump version to v$newVersion"; git cliff --tag "v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m "chore: update changelog for v$newVersion"; git tag "v$newVersion"; Write-Host ""; Write-Host "Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
209210
210211# Bumps the minor version, updates changelog, and creates a git tag (Unix)
211212[unix ]
@@ -219,6 +220,7 @@ bump-minor-version:
219220 echo " Bumping version from $CURRENT_VERSION to $NEW_VERSION"
220221 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" crates/ bamboo/ Cargo.toml
221222 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
223+ sed -i " s/bamboo-ssg = { version = \" $CURRENT_VERSION\" /bamboo-ssg = { version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
222224 git add crates/ bamboo/ Cargo.toml apps/ cli/ Cargo.toml
223225 git commit -m " chore: bump version to v$NEW_VERSION"
224226 git cliff --tag " v$NEW_VERSION" -o CHANGELOG.md
@@ -232,7 +234,7 @@ bump-minor-version:
232234# Bumps the major version, updates changelog, and creates a git tag (Windows)
233235[windows ]
234236bump-major-version :
235- $currentVersion = (Select-String -Path ' crates/bamboo/Cargo.toml' -Pattern ' ^version = "(.+)"' | Select-Object -First 1 ).Matches.Groups[1 ].Value; $parts = $currentVersion.Split(' .' ); $newMajor = [int]$parts[0] + 1 ; $newVersion = " $newMajor.0.0" ; Write-Host " Bumping version from $currentVersion to $newVersion" ; (Get-Content ' crates/bamboo/Cargo.toml' ) -replace " ^version = `" $currentVersion` " " , " version = ` " $newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace " ^version = ` " $currentVersion ` " " , " version = `" $newVersion`" " | Set-Content ' apps/cli/Cargo.toml' ; git add crates/ bamboo/ Cargo.toml apps/ cli/ Cargo.toml; git commit -m " chore: bump version to v$newVersion" ; git cliff --tag " v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m " chore: update changelog for v$newVersion" ; git tag " v$newVersion" ; Write-Host " " ; Write-Host " Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
237+ $currentVersion = (Select-String -Path 'crates/bamboo/Cargo.toml' -Pattern '^version = "(.+)"' | Select-Object -First 1).Matches.Groups[1].Value; $parts = $currentVersion.Split('.'); $newMajor = [int]$parts[0] + 1; $newVersion = "$newMajor.0.0"; Write-Host "Bumping version from $currentVersion to $newVersion"; (Get-Content 'crates/bamboo/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'crates/bamboo/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "^version = `"$currentVersion`"", "version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; (Get-Content 'apps/cli/Cargo.toml') -replace "bamboo-ssg = \{ version = `".*?`"", "bamboo-ssg = { version = `"$newVersion`"" | Set-Content 'apps/cli/Cargo.toml'; git add crates/bamboo/Cargo.toml apps/cli/Cargo.toml; git commit -m "chore: bump version to v$newVersion"; git cliff --tag "v$newVersion" -o CHANGELOG.md; git add CHANGELOG.md; git commit -m "chore: update changelog for v$newVersion"; git tag "v$newVersion"; Write-Host ""; Write-Host "Version bumped and tagged! To push, run:" -ForegroundColor Green; Write-Host " just push-version" -ForegroundColor Green
236238
237239# Bumps the major version, updates changelog, and creates a git tag (Unix)
238240[unix ]
@@ -246,6 +248,7 @@ bump-major-version:
246248 echo " Bumping version from $CURRENT_VERSION to $NEW_VERSION"
247249 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" crates/ bamboo/ Cargo.toml
248250 sed -i " s/^version = \" $CURRENT_VERSION\" /version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
251+ sed -i " s/bamboo-ssg = { version = \" $CURRENT_VERSION\" /bamboo-ssg = { version = \" $NEW_VERSION\" /" apps/ cli/ Cargo.toml
249252 git add crates/ bamboo/ Cargo.toml apps/ cli/ Cargo.toml
250253 git commit -m " chore: bump version to v$NEW_VERSION"
251254 git cliff --tag " v$NEW_VERSION" -o CHANGELOG.md
0 commit comments