Skip to content

Commit c96d60e

Browse files
committed
chore(ci): verify registry
1 parent 974a025 commit c96d60e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/ci-supabase-js.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,25 @@ jobs:
190190
if: ${{ matrix.deno == '1.x' }}
191191
env:
192192
STORAGE_JS_ENTRY: main
193-
npm_config_registry: http://localhost:4873
194193
DENO_NPM_REGISTRY: http://localhost:4873
195194
run: |
196195
cd packages/core/supabase-js/test/deno
196+
echo "registry=http://localhost:4873/" > .npmrc
197197
npm install
198198
npm test || npm test
199+
rm -f .npmrc
199200
cd ../../..
200201
201202
- name: Run Deno Tests
202203
if: ${{ matrix.deno == '2.x' }}
203204
env:
204-
npm_config_registry: http://localhost:4873
205205
DENO_NPM_REGISTRY: http://localhost:4873
206206
run: |
207207
cd packages/core/supabase-js/test/deno
208+
echo "registry=http://localhost:4873/" > .npmrc
208209
npm install
209210
npm test || npm test
211+
rm -f .npmrc
210212
cd ../../..
211213
212214
- name: Run integration and browser tests on Deno 2.x only
@@ -352,13 +354,13 @@ jobs:
352354
npm view @supabase/supabase-js --registry http://localhost:4873 | head -20
353355
354356
- name: Run integration tests
355-
env:
356-
npm_config_registry: http://localhost:4873
357357
run: |
358358
cd packages/core/supabase-js/test/integration/next
359+
echo "registry=http://localhost:4873/" > .npmrc
359360
npm install --legacy-peer-deps
360361
npx playwright install
361362
npm run test
363+
rm -f .npmrc
362364
363365
- name: Stop Supabase
364366
if: always()
@@ -431,12 +433,12 @@ jobs:
431433
npm view @supabase/supabase-js --registry http://localhost:4873 | head -20
432434
433435
- name: Install test dependencies and run tests
434-
env:
435-
npm_config_registry: http://localhost:4873
436436
run: |
437437
cd packages/core/supabase-js/test/integration/expo
438+
echo "registry=http://localhost:4873/" > .npmrc
438439
npm install
439440
npm test
441+
rm -f .npmrc
440442
441443
- name: Stop Supabase
442444
if: always()
@@ -514,13 +516,12 @@ jobs:
514516
npm view @supabase/supabase-js --registry http://localhost:4873 | head -20
515517
516518
- name: Install dependencies and run tests
517-
env:
518-
npm_config_registry: http://localhost:4873
519-
BUN_CONFIG_REGISTRY: http://localhost:4873
520519
run: |
521520
cd packages/core/supabase-js/test/integration/bun
521+
echo "registry=http://localhost:4873/" > .npmrc
522522
bun install
523523
bun test
524+
rm -f .npmrc
524525
525526
- name: Stop Supabase
526527
if: always()

packages/core/supabase-js/src/SupabaseClient.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export default class SupabaseClient<
107107
protected supabaseKey: string,
108108
options?: SupabaseClientOptions<SchemaName>
109109
) {
110+
console.warn('🔴 VERDACCIO TEST: This is the LOCAL BUILD from Verdaccio - if you see this, local packages are being used')
110111
const baseUrl = validateSupabaseUrl(supabaseUrl)
111112
if (!supabaseKey) throw new Error('supabaseKey is required.')
112113

0 commit comments

Comments
 (0)