Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 03:37 UTC
| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | # changesets/action v2 reads Changesets v3's NDJSON events from |
| 5 | # CHANGESETS_OUTPUT. Keep @composio/cli tags owned by the CLI binary workflow. |
| 6 | # Public SDK package tags still accompany npm publication; the SDK workflow |
| 7 | # disables GitHub Release creation, and Changesets does not tag private packages. |
| 8 | |
| 9 | filtered_output_file=$(mktemp) |
| 10 | trap 'rm -f "$filtered_output_file"' EXIT |
| 11 | |
| 12 | pnpm run build:packages |
| 13 | pnpm run check:provider-compatibility |
| 14 | |
| 15 | set +e |
| 16 | pnpm changeset publish |
| 17 | status=$? |
| 18 | set -e |
| 19 | |
| 20 | if [ -n "${CHANGESETS_OUTPUT:-}" ] && [ -f "$CHANGESETS_OUTPUT" ]; then |
| 21 | jq -c 'select(.packageName != "@composio/cli")' "$CHANGESETS_OUTPUT" >"$filtered_output_file" |
| 22 | mv "$filtered_output_file" "$CHANGESETS_OUTPUT" |
| 23 | fi |
| 24 | |
| 25 | exit "$status" |