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
adding js and testing twine
rafaelsideguideb3cae4c8588e
diff --git a/.github/workflows/publish-js-sdk.yml b/.github/workflows/publish-js-sdk.ymlnew file mode 100644index 000000000..bfd61fa30--- /dev/null+++ b/.github/workflows/publish-js-sdk.yml@@ -0,0 +1,48 @@+name: Publish Package to npm++on:+ pull_request:+ branches:+ - main++env:+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}++jobs:+ build-and-publish:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v3+ - name: Set up Node.js+ uses: actions/setup-node@v3+ with:+ node-version: "20"++ - name: Install pnpm+ run: npm install -g pnpm++ - name: Install python for running version check script+ run: |+ python -m pip install --upgrade pip+ pip install setuptools wheel requests packaging++ - name: Install dependencies for JavaScript SDK+ run: pnpm install+ working-directory: ./apps/js-sdk/firecrawl++ - name: Run version check script+ id: version_check_script+ run: |+ VERSION_INCREMENTED=$(python .github/scripts/check_version_has_incremented.py js ./apps/js-sdk/firecrawl @mendable/firecrawl-js)+ echo "VERSION_INCREMENTED=$VERSION_INCREMENTED" >> $GITHUB_ENV++ - name: Build and publish to npm+ if: ${{ env.VERSION_INCREMENTED == 'true' }}+ env:+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}+ run: |+ npm run publish+ working-directory: ./apps/js-sdk/firecrawl++diff --git a/.github/workflows/publish-python-sdk.yml b/.github/workflows/publish-python-sdk.ymlindex 46cfd68d7..612a96868 100644--- a/.github/workflows/publish-python-sdk.yml+++ b/.github/workflows/publish-python-sdk.yml@@ -33,15 +33,6 @@ jobs:VERSION_INCREMENTED=$(python .github/scripts/check_version_has_incremented.py python ./apps/python-sdk/firecrawl firecrawl-py)echo "VERSION_INCREMENTED=$VERSION_INCREMENTED" >> $GITHUB_ENV- - name: Debug output of version check- run: |- echo "Output of VERSION_INCREMENTED: '${{ env.VERSION_INCREMENTED }}'"-- - name: Set published version environment variable- if: ${{ env.VERSION_INCREMENTED == 'true' }}- run: |- echo "Published Version: ${{ env.VERSION_INCREMENTED }}"-- name: Build the packageif: ${{ env.VERSION_INCREMENTED == 'true' }}run: |@@ -54,4 +45,6 @@ jobs:TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}run: |- echo "Publishing to PyPI"+ twine upload dist/*+ working-directory: ./apps/python-sdk+diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.jsonindex d3581b354..3c2d6042a 100644--- a/apps/js-sdk/firecrawl/package.json+++ b/apps/js-sdk/firecrawl/package.json@@ -1,6 +1,6 @@{"name": "@mendable/firecrawl-js",- "version": "0.0.23",+ "version": "0.0.24","description": "JavaScript SDK for Firecrawl API","main": "build/index.js","types": "types/index.d.ts",