Skip to content

Commit b6bb990

Browse files
committed
only do snapshot release if versioned
1 parent 5a49250 commit b6bb990

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/snapshot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@ jobs:
3737

3838
- name: Snapshot Versioning
3939
run: yarn changeset version --snapshot
40+
4041
- name: Snapshot Release
41-
run: yarn changeset publish --no-git-tag --tag snapshot
42+
run: |
43+
if git diff --quiet; then
44+
echo "No changes detected"
45+
exit 0
46+
else
47+
yarn changeset publish --no-git-tag --tag snapshot
48+
fi
4249
env:
4350
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4451
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)