Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,45 @@ jobs:
- run: pnpm turbo run type-check --affected
- run: pnpm turbo run build --affected
- run: pnpm turbo run test --affected

# Debug: Check what was built
- name: Check build output
run: |
echo "Checking packages directory structure:"
find packages -name "dist" -type d || echo "No dist directories found"
ls -la packages/*/dist 2>/dev/null || echo "No dist directories to list"

- uses: actions/upload-artifact@v4
if: success()
with:
name: build-artifacts
path: packages/*/dist
if-no-files-found: warn

cache-build:
name: Cache Artifacts
needs: validate
runs-on: ubuntu-latest
if: success()
steps:
- uses: actions/download-artifact@v4
id: download-artifacts
continue-on-error: true
with:
name: build-artifacts
path: packages

- name: Check artifact download
run: |
if [[ "${{ steps.download-artifacts.outcome }}" == "success" ]]; then
echo "Artifacts downloaded successfully"
ls -la packages/
else
echo "No artifacts to download - this may be expected if no packages were built"
fi

- uses: actions/cache@v4
if: steps.download-artifacts.outcome == 'success'
with:
path: packages/*/dist
key: build-artifacts-${{ github.sha }}
15 changes: 14 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
with:
path: packages/*/dist
key: build-artifacts-${{ github.sha }}
restore-keys: |
build-artifacts-

- id: cache-node-modules
uses: actions/cache@v4
Expand All @@ -62,8 +64,9 @@ jobs:
# This ensures workspace packages like docs have their dependencies
- run: pnpm install --frozen-lockfile

# Always build packages to ensure we have the latest changes
# Don't rely solely on cache as it might be stale or missing
- run: pnpm turbo run build
if: steps.cached-build-artifacts.outputs.cache-hit != 'true'

- run: pnpm turbo run docgen --filter=@evolution-sdk/evolution

Expand All @@ -81,7 +84,17 @@ jobs:
# Add debug step to check if the output directory exists
- name: Debug output directory
run: |
echo "Checking docs build output:"
ls -la docs/
if [ -d "docs/out" ]; then
echo "docs/out directory exists:"
ls -la docs/out/
echo "Total files in docs/out:"
find docs/out -type f | wc -l
else
echo "ERROR: docs/out directory does not exist!"
exit 1
fi

- uses: actions/upload-pages-artifact@v3
with:
Expand Down