We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b1bc23 commit c5f6befCopy full SHA for c5f6bef
scripts/release-safe.sh
@@ -222,11 +222,15 @@ create_release() {
222
exit 1
223
fi
224
225
- # Commit version changes
226
- print_step "Committing version changes..."
+ # Commit version changes (skip if already at target version)
227
git add package.json deno.json
228
- git commit -m "chore: bump version to $version"
229
- print_success "Version bump committed"
+ if git diff --cached --quiet; then
+ print_warning "Version already at $version, skipping commit"
+ else
230
+ print_step "Committing version changes..."
231
+ git commit -m "chore: bump version to $version"
232
+ print_success "Version bump committed"
233
+ fi
234
235
# Create tag
236
print_step "Creating tag $tag_name..."
0 commit comments