File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -89,23 +89,45 @@ jobs:
8989 - run : pnpm turbo run type-check --affected
9090 - run : pnpm turbo run build --affected
9191 - run : pnpm turbo run test --affected
92+
93+ # Debug: Check what was built
94+ - name : Check build output
95+ run : |
96+ echo "Checking packages directory structure:"
97+ find packages -name "dist" -type d || echo "No dist directories found"
98+ ls -la packages/*/dist 2>/dev/null || echo "No dist directories to list"
9299
93100 - uses : actions/upload-artifact@v4
101+ if : success()
94102 with :
95103 name : build-artifacts
96104 path : packages/*/dist
105+ if-no-files-found : warn
97106
98107 cache-build :
99108 name : Cache Artifacts
100109 needs : validate
101110 runs-on : ubuntu-latest
111+ if : success()
102112 steps :
103113 - uses : actions/download-artifact@v4
114+ id : download-artifacts
115+ continue-on-error : true
104116 with :
105117 name : build-artifacts
106118 path : packages
107119
120+ - name : Check artifact download
121+ run : |
122+ if [[ "${{ steps.download-artifacts.outcome }}" == "success" ]]; then
123+ echo "Artifacts downloaded successfully"
124+ ls -la packages/
125+ else
126+ echo "No artifacts to download - this may be expected if no packages were built"
127+ fi
128+
108129 - uses : actions/cache@v4
130+ if : steps.download-artifacts.outcome == 'success'
109131 with :
110132 path : packages/*/dist
111133 key : build-artifacts-${{ github.sha }}
Original file line number Diff line number Diff line change 3838 with :
3939 path : packages/*/dist
4040 key : build-artifacts-${{ github.sha }}
41+ restore-keys : |
42+ build-artifacts-
4143
4244 - id : cache-node-modules
4345 uses : actions/cache@v4
6264 # This ensures workspace packages like docs have their dependencies
6365 - run : pnpm install --frozen-lockfile
6466
67+ # Always build packages to ensure we have the latest changes
68+ # Don't rely solely on cache as it might be stale or missing
6569 - run : pnpm turbo run build
66- if : steps.cached-build-artifacts.outputs.cache-hit != 'true'
6770
6871 - run : pnpm turbo run docgen --filter=@evolution-sdk/evolution
6972
8184 # Add debug step to check if the output directory exists
8285 - name : Debug output directory
8386 run : |
87+ echo "Checking docs build output:"
8488 ls -la docs/
89+ if [ -d "docs/out" ]; then
90+ echo "docs/out directory exists:"
91+ ls -la docs/out/
92+ echo "Total files in docs/out:"
93+ find docs/out -type f | wc -l
94+ else
95+ echo "ERROR: docs/out directory does not exist!"
96+ exit 1
97+ fi
8598
8699 - uses : actions/upload-pages-artifact@v3
87100 with :
You can’t perform that action at this time.
0 commit comments