Skip to content

chore(@tutur3u/supabase): bump version to 0.0.8 #2239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
24 changes: 19 additions & 5 deletions .github/workflows/check-and-bump-versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,19 @@ jobs:
DIFF=$(git diff HEAD~1 HEAD -- package.json)
fi

# Count number of changed lines that aren't the version field
NON_VERSION_CHANGES=$(echo "$DIFF" | grep -v '"version":' | grep '^[+-]' | wc -l)
# Extract the changes, excluding whitespace-only changes
CHANGES=$(echo "$DIFF" | grep '^[+-]' | grep -v '^[+-]$' | grep -v '^[+-]\s*$')

# If there are no non-version changes, return true (1)
# Count lines that aren't the version field or the final newline
NON_VERSION_CHANGES=$(echo "$CHANGES" | grep -v '"version":' | grep -v '^[+-]$' | wc -l | tr -d ' ')

# If there are no non-version changes, return success (0)
if [ "$NON_VERSION_CHANGES" -eq 0 ]; then
return 0
# Double check that version field is the only thing that changed
VERSION_CHANGES=$(echo "$CHANGES" | grep '"version":' | wc -l | tr -d ' ')
if [ "$VERSION_CHANGES" -eq 2 ]; then # One line removed, one line added
return 0
fi
fi
return 1
}
Expand All @@ -299,8 +306,15 @@ jobs:
if check_package_json_changes; then
echo "Only version field changed in package.json, skipping version bump"
SHOULD_BUMP=false
# Update checksum without bumping version
echo "$NEW_CHECKSUM" > .checksum
if [ -n "$(git status --porcelain .checksum)" ]; then
git add .checksum
git commit -m "chore(@tutur3u/${package}): update checksum [skip ci]"
git push origin HEAD
fi
else
echo "Package.json has meaningful changes"
echo "Package.json has meaningful changes beyond version"
SHOULD_BUMP=true
fi
else
Expand Down
2 changes: 1 addition & 1 deletion packages/supabase/.checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc9ff7c34b97903033b4f7c841fd9dc3535157330f0d799cbb6bc2cc28df7d5d
9cbf3632188207267fbc27ba24f7b07ce9f26f1887aad1871a089f5ea10d9d30
2 changes: 1 addition & 1 deletion packages/supabase/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tutur3u/supabase",
"license": "MIT",
"version": "0.0.5",
"version": "0.0.8",
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/.checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
923117d60c2cbfe0f6efd185056f81cf9777e2be4aba7ed82cfb87680db9c2d1
4dd90552007cb4ed77906f9b79c2fe95752782fac6e16b353b63f02edeb60d8f
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tutur3u/types",
"license": "MIT",
"version": "0.1.4",
"version": "0.1.6",
"publishConfig": {
"access": "public"
},
Expand Down