Nick: fixed js sdk

This commit is contained in:
Nicolas 2025-02-27 20:39:53 -03:00
parent 44bf59229a
commit 39b61132bf
2 changed files with 30 additions and 30 deletions

View File

@ -1,32 +1,32 @@
name: Publish JS SDK # name: Publish JS SDK
on: # on:
push: # push:
branches: # branches:
- main # - main
paths: # paths:
- apps/js-sdk/firecrawl/package.json # - apps/js-sdk/firecrawl/package.json
env: # env:
TEST_API_KEY: ${{ secrets.TEST_API_KEY }} # TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
jobs: # jobs:
publish: # publish:
name: Publish # name: Publish
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v3 # - uses: actions/checkout@v3
- name: Set up Node.js # - name: Set up Node.js
uses: actions/setup-node@v3 # uses: actions/setup-node@v3
with: # with:
node-version: "20" # node-version: "20"
- name: Authenticate # - name: Authenticate
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc # run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish # - name: Publish
run: | # run: |
npm publish # npm publish
sed -i 's/"name": "@mendable\/firecrawl-js"/"name": "@mendable\/firecrawl"/g' package.json # sed -i 's/"name": "@mendable\/firecrawl-js"/"name": "@mendable\/firecrawl"/g' package.json
npm publish # npm publish
sed -i 's/"name": "@mendable\/firecrawl"/"name": "firecrawl"/g' package.json # sed -i 's/"name": "@mendable\/firecrawl"/"name": "firecrawl"/g' package.json
npm publish # npm publish
working-directory: ./apps/js-sdk/firecrawl # working-directory: ./apps/js-sdk/firecrawl

View File

@ -1,6 +1,6 @@
{ {
"name": "@mendable/firecrawl-js", "name": "@mendable/firecrawl-js",
"version": "1.18.4", "version": "1.18.5",
"description": "JavaScript SDK for Firecrawl API", "description": "JavaScript SDK for Firecrawl API",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",