mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
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:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user