fix: harden reminders and state handling
This commit is contained in:
@@ -116,9 +116,6 @@ $pkgJson = [System.IO.File]::ReadAllText($pkgPath, $utf8NoBom)
|
||||
$pkgJson = $pkgJson -replace "`"version`":\s*`"$current`"", "`"version`": `"$next`""
|
||||
[System.IO.File]::WriteAllText($pkgPath, $pkgJson, $utf8NoBom)
|
||||
|
||||
git add package.json
|
||||
git commit -m "chore(release): $tag"
|
||||
|
||||
# --- Quality gates ------------------------------------------------------
|
||||
if (-not $SkipBuild) {
|
||||
Write-Host "Typecheck..." -ForegroundColor Cyan
|
||||
@@ -145,6 +142,12 @@ foreach ($f in @($installer, $blockmap, $manifest)) {
|
||||
}
|
||||
}
|
||||
|
||||
# Commit only after quality gates and artifact verification pass. If a check
|
||||
# fails, package.json remains modified but history does not get a broken
|
||||
# release commit/tag.
|
||||
git add package.json
|
||||
git commit -m "chore(release): $tag"
|
||||
|
||||
# --- Tag + push ---------------------------------------------------------
|
||||
Write-Host "Tagging $tag and pushing..." -ForegroundColor Cyan
|
||||
git tag -a $tag -m "Release $tag"
|
||||
|
||||
Reference in New Issue
Block a user