Skip to content

The agent engineering platform.

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

ccurme2ca73c479b2e
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml
index 66bf8053c8..a458b42eb4 100644
--- a/.github/workflows/_release.yml
+++ b/.github/workflows/_release.yml
@@ -179,8 +179,8 @@ jobs:
PREV_TAG: ${{ steps.check-tags.outputs.prev-tag }}
run: |
PREAMBLE="Changes since $PREV_TAG"
- # if PREV_TAG is empty, then we are releasing the first version
- if [ -z "$PREV_TAG" ]; then
+ # if PREV_TAG is empty or 0.0.0, then we are releasing the first version
+ if [ -z "$PREV_TAG" ] || [ "$PREV_TAG" = "$PKG_NAME==0.0.0" ]; then
PREAMBLE="Initial release"
PREV_TAG=$(git rev-list --max-parents=0 HEAD)
fi