Skip to content

The agent engineering platform.

fix(infra): fix release workflow for new packages (#33759)

ccurme17c7c273b897
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index 1b50dd0d2a..66bf8053c8 100644
--- a/.github/workflows/_release.yml
+++ b/.github/workflows/_release.yml
@@ -149,8 +149,8 @@ jobs:
fi
fi
- # if PREV_TAG is empty, let it be empty
- if [ -z "$PREV_TAG" ]; then
+ # if PREV_TAG is empty or came out to 0.0.0, let it be empty
+ if [ -z "$PREV_TAG" ] || [ "$PREV_TAG" = "$PKG_NAME==0.0.0" ]; then
echo "No previous tag found - first release"
else
# confirm prev-tag actually exists in git repo with git tag