mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 06:59:03 +08:00
fix(ci/js-sdk): properly build SDK before publishing
This commit is contained in:
parent
904e69bfbc
commit
856ec37d4c
60
.github/workflows/publish-js-sdk.yml
vendored
60
.github/workflows/publish-js-sdk.yml
vendored
@ -1,32 +1,34 @@
|
|||||||
# 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 ci
|
||||||
# sed -i 's/"name": "@mendable\/firecrawl-js"/"name": "@mendable\/firecrawl"/g' package.json
|
npm run build
|
||||||
# npm publish
|
npm publish --access public
|
||||||
# sed -i 's/"name": "@mendable\/firecrawl"/"name": "firecrawl"/g' package.json
|
sed -i 's/"name": "@mendable\/firecrawl-js"/"name": "@mendable\/firecrawl"/g' package.json
|
||||||
# npm publish
|
npm publish --access public
|
||||||
# working-directory: ./apps/js-sdk/firecrawl
|
sed -i 's/"name": "@mendable\/firecrawl"/"name": "firecrawl"/g' package.json
|
||||||
|
npm publish --access public
|
||||||
|
working-directory: ./apps/js-sdk/firecrawl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user