Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
ci(php-sdk): tag releases on firecrawl-php so Packagist publishes stable versions
Kris Oei9f17c8e62aae
diff --git a/.github/workflows/publish-php-sdk.yml b/.github/workflows/publish-php-sdk.ymlindex 31fe77c6a..f2113dad3 100644--- a/.github/workflows/publish-php-sdk.yml+++ b/.github/workflows/publish-php-sdk.yml@@ -7,6 +7,7 @@ on:- mainpaths:- 'apps/php-sdk/**'+ - '.github/workflows/publish-php-sdk.yml'jobs:publish:@@ -62,6 +63,25 @@ jobs:git remote add php-sdk [email protected]:firecrawl/firecrawl-php.gitgit push php-sdk php-sdk-split:main --force+ - name: Tag release on firecrawl-php+ if: ${{ env.VERSION_INCREMENTED == 'true' }}+ run: |+ VERSION=$(sed -nE "s/.*SDK_VERSION[[:space:]]*=[[:space:]]*'([0-9]+\.[0-9]+\.[0-9]+)'.*/\1/p" apps/php-sdk/src/Version.php)+ if [ -z "$VERSION" ]; then+ echo "Could not read SDK_VERSION from apps/php-sdk/src/Version.php" >&2+ exit 1+ fi+ TAG="v${VERSION}"+ # Packagist derives stable versions from git tags on the mirror repo;+ # without a tag it only exposes dev-main, so constraints like ^1.9+ # never resolve.+ if git ls-remote --exit-code --tags php-sdk "refs/tags/${TAG}" >/dev/null 2>&1; then+ echo "Tag ${TAG} already exists on firecrawl-php — skipping tag push."+ else+ git push php-sdk "php-sdk-split:refs/tags/${TAG}"+ echo "Pushed ${TAG} to firecrawl-php"+ fi+- name: Notify Packagistif: ${{ env.VERSION_INCREMENTED == 'true' }}run: |