@devries-cameron20 / composio-1 / commits / 175191145
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix: capture bumped package versions in Slack release notification

Modified the TS release workflow to use the publishedPackages output from changesets/action. Previously, it relied on 'pnpm changeset status' which is empty after publishing. Added logic to fetch the previous version from the repository history to show the bump. Made-with: Cursor

haxzie committed Mar 19, 2026 at 12:18 UTC 175191145bb8f663b40bb4aa4fb9cb852ea0a7a8
1 file changed +20 -2
.github/workflows/ts.release.yml
+20 -2
@@ -43,9 +43,27 @@ jobs:
43
44 - name: Set Version Info
45 if: steps.changesets.outputs.published == 'true'
46 + env:
47 + PUBLISHED_PACKAGES: ${{ steps.changesets.outputs.publishedPackages }}
48 run: |
47 - VERSIONS=$(pnpm changeset status --json | jq -r '.releases[] | "⚡️ \(.name) -> \(.version)"' || echo "No version info available")
48 - echo "SLACK_VERSIONS=$VERSIONS" >> $GITHUB_ENV
49 + echo "SLACK_VERSIONS<<EOF" >> $GITHUB_ENV
50 + echo "$PUBLISHED_PACKAGES" | jq -c '.[]' | while read -r pkg; do
51 + NAME=$(echo "$pkg" | jq -r '.name')
52 + NEW_VERSION=$(echo "$pkg" | jq -r '.version')
53 + PKG_PATH=$(pnpm list --filter "$NAME" --json | jq -r '.[0].path')
54 + if [ "$PKG_PATH" != "null" ] && [ -n "$PKG_PATH" ]; then
55 + REL_PKG_JSON_PATH="${PKG_PATH#$GITHUB_WORKSPACE/}/package.json"
56 + OLD_VERSION=$(git show "HEAD^:$REL_PKG_JSON_PATH" | jq -r .version 2>/dev/null || echo "")
57 + if [ -n "$OLD_VERSION" ] && [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
58 + echo "⚡️ $NAME: \`$OLD_VERSION\` -> \`$NEW_VERSION\`" >> $GITHUB_ENV
59 + else
60 + echo "⚡️ $NAME: \`$NEW_VERSION\`" >> $GITHUB_ENV
61 + fi
62 + else
63 + echo "⚡️ $NAME: \`$NEW_VERSION\`" >> $GITHUB_ENV
64 + fi
65 + done
66 + echo "EOF" >> $GITHUB_ENV
67
68 - name: Send Slack Notification
69 if: steps.changesets.outputs.published == 'true'