Skip to content

Commit 064d9f5

Browse files
fix-versioning
1 parent 2a15f36 commit 064d9f5

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
run: pnpm run changeset:version
3939
- name: Commit version files
4040
run: |
41-
git config --global user.name 'Tanner Linsley'
42-
git config --global user.email 'tannerlinsley@users.noreply.github.com' git add -A
43-
git commit -m "ci: Version Packages"
44-
git push
41+
if [[ -n "$(git status --porcelain)" ]]; then
42+
git config --global user.name 'Tanner Linsley'
43+
git config --global user.email 'tannerlinsley@users.noreply.github.com'
44+
git add -A
45+
git commit -m "ci: Version Packages"
46+
git push
47+
fi
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4750
- name: Publish Packages

0 commit comments

Comments
 (0)