4242 - name : Build all packages
4343 run : npx nx run-many --target=build --all
4444
45+ - name : Upload built packages
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : packages-dist
49+ path : |
50+ packages/core/auth-js/dist
51+ packages/core/functions-js/dist
52+ packages/core/postgrest-js/dist
53+ packages/core/realtime-js/dist
54+ packages/core/storage-js/dist
55+ packages/core/supabase-js/dist
56+
4557 - name : Upload UMD build
4658 uses : actions/upload-artifact@v4
4759 with :
7385 - name : Install dependencies
7486 run : npm ci --legacy-peer-deps
7587
76- - name : Type Check
77- run : npx nx test:types supabase-js
78-
79- - name : Run Unit Tests + Coverage
80- run : npx nx test:coverage supabase-js
88+ - name : Type Check + Unit Tests + Coverage
89+ run : npx nx run-many --targets=test:types,test:coverage --projects=supabase-js
8190
8291 - name : Upload coverage results to Coveralls
8392 uses : coverallsapp/github-action@v2
@@ -207,7 +216,7 @@ jobs:
207216 if : ${{ matrix.deno == '2.x' }}
208217 run : |
209218 cd packages/core/supabase-js/test/deno
210- npx nx test:edge-functions supabase-js
219+ npm run test:edge-functions
211220 cd ../../..
212221
213222 - name : Stop Supabase
@@ -332,9 +341,6 @@ jobs:
332341 echo "Verifying storage bucket exists"
333342 supabase db query "select id, name from storage.buckets where id = 'test-bucket';"
334343
335- - name : Install Playwright browsers and dependencies
336- run : npx playwright install --with-deps
337-
338344 - name : Verify packages in Verdaccio
339345 run : |
340346 echo "Verifying @supabase/supabase-js is available in Verdaccio..."
@@ -349,7 +355,7 @@ jobs:
349355 cd "$TEST_DIR"
350356 echo "registry=http://localhost:4873/" > .npmrc
351357 npm install --legacy-peer-deps
352- npx playwright install
358+ npx playwright install --with-deps
353359 npm run test
354360 rm -f .npmrc
355361
0 commit comments