Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

chore: remove redundant build steps from documentation workflows and improve preview URL extraction

[email protected]6c26ba332fdc
diff --git a/.github/workflows/preview_docs.yml b/.github/workflows/preview_docs.yml
index e1a5ca7e4..ad139837f 100644
--- a/.github/workflows/preview_docs.yml
+++ b/.github/workflows/preview_docs.yml
@@ -34,10 +34,6 @@ jobs:
- name: Install Fern
run: npm install -g fern-api
- - name: Build documentation with Turbo
- working-directory: ./fern
- run: pnpm turbo run build --filter=composio-docs
-
- name: Generate preview URL
id: generate-docs
working-directory: ./fern
@@ -45,11 +41,11 @@ jobs:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
run: |
- OUTPUT=$(pnpm turbo run preview -- --log-level debug)
- echo "$OUTPUT"
- URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
- echo "Preview URL: $URL"
- echo "🌿 Preview your docs: $URL" > preview_url.txt
+ pnpm turbo run preview -- --log-level debug \
+ | tee turbo.log \
+ | tee /dev/tty \
+ | rg -oP 'Published docs to \K.*(?= \()' \
+ | tee preview_url.txt
- name: Comment URL in PR
uses: thollander/[email protected]
diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml
index 9538c97df..12d08dcfb 100644
--- a/.github/workflows/publish_docs.yml
+++ b/.github/workflows/publish_docs.yml
@@ -29,10 +29,6 @@ jobs:
uv sync
uv pip install ../python
- - name: Build documentation with Turbo
- working-directory: ./fern
- run: pnpm turbo run build --filter=composio-docs
-
- name: Publish Docs
working-directory: ./fern
env:
diff --git a/fern/turbo.json b/fern/turbo.json
index e15a5355d..7f06d6c45 100644
--- a/fern/turbo.json
+++ b/fern/turbo.json
@@ -81,13 +81,13 @@
},
"preview": {
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"cache": false,
"env": ["FERN_TOKEN"]
},
"publish": {
- "dependsOn": ["build"],
+ "dependsOn": ["^build"],
"cache": false,
"env": ["FERN_TOKEN", "POSTHOG_API_KEY"]
},