@devries-cameron20 / composio Mirror · read-only / commits / 6c26ba332
Fork 0

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

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 22, 23:15 UTC

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

balyan.sid@gmail.com committed Jun 25, 2025 at 18:23 UTC 6c26ba332fdcb8718d37ffb5f4e81c277a0b4bd1
3 files changed +7 -15
.github/workflows/preview_docs.yml
+5 -9
@@ -34,10 +34,6 @@ jobs:
34 - name: Install Fern
35 run: npm install -g fern-api
36
37 - - name: Build documentation with Turbo
38 - working-directory: ./fern
39 - run: pnpm turbo run build --filter=composio-docs
40 -
37 - name: Generate preview URL
38 id: generate-docs
39 working-directory: ./fern
@@ -45,11 +41,11 @@ jobs:
41 FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
42 POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
43 run: |
48 - OUTPUT=$(pnpm turbo run preview -- --log-level debug)
49 - echo "$OUTPUT"
50 - URL=$(echo "$OUTPUT" | grep -oP 'Published docs to \K.*(?= \()')
51 - echo "Preview URL: $URL"
52 - echo "🌿 Preview your docs: $URL" > preview_url.txt
44 + pnpm turbo run preview -- --log-level debug \
45 + | tee turbo.log \
46 + | tee /dev/tty \
47 + | rg -oP 'Published docs to \K.*(?= \()' \
48 + | tee preview_url.txt
49
50 - name: Comment URL in PR
51 uses: thollander/actions-comment-pull-request@v2.4.3
.github/workflows/publish_docs.yml
-4
@@ -29,10 +29,6 @@ jobs:
29 uv sync
30 uv pip install ../python
31
32 - - name: Build documentation with Turbo
33 - working-directory: ./fern
34 - run: pnpm turbo run build --filter=composio-docs
35 -
32 - name: Publish Docs
33 working-directory: ./fern
34 env:
fern/turbo.json
+2 -2
@@ -81,13 +81,13 @@
81 },
82
83 "preview": {
84 - "dependsOn": ["build"],
84 + "dependsOn": ["^build"],
85 "cache": false,
86 "env": ["FERN_TOKEN"]
87 },
88
89 "publish": {
90 - "dependsOn": ["build"],
90 + "dependsOn": ["^build"],
91 "cache": false,
92 "env": ["FERN_TOKEN", "POSTHOG_API_KEY"]
93 },