Skip to content

Commit 767cd3f

Browse files
author
Disturbing
committed
fix: proper changeset detection logic excluding README.md
1 parent 52bb995 commit 767cd3f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,15 @@ jobs:
5555
- name: Check for changesets
5656
id: changesets
5757
run: |
58-
if [ -f .changeset/*.md ]; then
58+
# Count changeset files excluding README.md
59+
CHANGESET_COUNT=$(find .changeset -name "*.md" -not -name "README.md" | wc -l)
60+
if [ "$CHANGESET_COUNT" -gt 0 ]; then
5961
echo "has_changesets=true" >> $GITHUB_OUTPUT
60-
echo "Changesets found, proceeding with release"
62+
echo "Changesets found ($CHANGESET_COUNT files), proceeding with release"
63+
# List the changeset files for debugging
64+
find .changeset -name "*.md" -not -name "README.md" | while read file; do
65+
echo "Found changeset: $file"
66+
done
6167
else
6268
echo "has_changesets=false" >> $GITHUB_OUTPUT
6369
echo "No changesets found, skipping release"

0 commit comments

Comments
 (0)