diff --git a/.github/workflows/check-package-changes.yml b/.github/workflows/check-package-changes.yml index 19b7e5e6..b29d86c6 100644 --- a/.github/workflows/check-package-changes.yml +++ b/.github/workflows/check-package-changes.yml @@ -21,12 +21,11 @@ jobs: - name: Check for multiple package changes run: | - CHANGED_SDKS=$(git diff --name-only origin/${{ github.base_ref }} | grep -E '^sdk-[^/]+/' | cut -d'/' -f1 | sort -u) - CHANGED_CLI=$(git diff --name-only origin/${{ github.base_ref }} | grep -E '^cli/' | cut -d'/' -f1 | sort -u) + CHANGED_PACKAGES=$(git diff --name-only origin/"${{ github.base_ref }}" | grep -E '^(sdk-[^/]+/|cli/)' | cut -d'/' -f1 | sort -u) - COUNT=$(echo "$CHANGED_SDKS $CHANGED_CLI" | grep -v '^$' | wc -l) + COUNT=$(echo "$CHANGED_PACKAGES" | grep -v '^$' | wc -l) - echo "Changed packages: $CHANGED_SDKS $CHANGED_CLI" + echo "$CHANGED_PACKAGES (COUNT=$COUNT)" if [ "$COUNT" -gt 1 ]; then echo "Error: Changes detected in multiple packages:" diff --git a/sdk-node/package.json b/sdk-node/package.json index 48ab80b1..bd7d8a51 100644 --- a/sdk-node/package.json +++ b/sdk-node/package.json @@ -1,6 +1,6 @@ { "name": "inferable", - "version": "0.30.53", + "version": "0.30.54", "description": "Javascript SDK for inferable.ai", "main": "bin/index.js", "scripts": {