Update prepare_release.sh to build after formatting with new SwiftFormat version (#2496)

Co-authored-by: calda <1811727+calda@users.noreply.github.com>
This commit is contained in:
Copilot
2026-04-11 12:17:55 -07:00
committed by Cal Stephens
parent 4ace97e09d
commit 591d9c2a1e
+7
View File
@@ -94,6 +94,13 @@ cp "$ARCHIVE_EXECUTABLE" CommandLineTool/swiftformat
echo "Formatting using new binary..."
bash format.sh
# 9. Build again after formatting to ensure no issues were introduced
echo "Building after formatting..."
if ! swift build -c release; then
echo "Error: Build failed after formatting. Please fix the issues before proceeding."
exit 1
fi
echo ""
echo "✅ Release preparation completed successfully for version $NEW_VERSION!"
echo ""