Skip to content

Commit 2ff5eec

Browse files
committed
chore: improve justfiles version recipes
1 parent a120bd7 commit 2ff5eec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extension/justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ version VERSION:
101101
npm pkg set version={{VERSION}}
102102
bun install
103103
git add package.json bun.lock
104-
git commit -m "chore(extension): bump version to {{VERSION}}"
104+
git diff --cached --quiet || git commit -m "chore(extension): bump version to {{VERSION}}"
105105
git tag ext-v{{VERSION}}
106106

107107
[group('utils')]

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ version VERSION:
287287

288288
# Commit and tag
289289
git add pyproject.toml packages/*/pyproject.toml uv.lock web/package.json web/bun.lock
290-
git commit -m "chore: bump version to {{VERSION}}"
290+
git diff --cached --quiet || git commit -m "chore: bump version to {{VERSION}}"
291291
git tag v{{VERSION}}
292292

293293
[group('utils')]

0 commit comments

Comments
 (0)