From 43e24a25d27cb3ae25aaed3684d88f73a297bfbc Mon Sep 17 00:00:00 2001 From: lv10 Date: Sat, 14 Mar 2026 22:46:47 -0400 Subject: [PATCH] fix(ci): detect new release via semantic-release output instead of dist/ check --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75e2a08..baa2fe2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,10 +40,8 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" # We run versioning and publishing manually via uv to ensure it has access to the environment - uv run semantic-release -v version - - # Check if a new version was released by looking for built dist files - if [ -d "dist" ] && [ "$(ls -A dist)" ]; then + uv run semantic-release -v version 2>&1 | tee /tmp/sr_version.txt + if grep -q "The next version is:" /tmp/sr_version.txt; then echo "released=true" >> $GITHUB_OUTPUT fi