Skip to content

Commit 0c3bf13

Browse files
committed
chore(ci): verdaccio registry at job level
1 parent 03beadd commit 0c3bf13

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ jobs:
117117
name: Deno Tests / ${{ matrix.deno }}
118118
runs-on: ubuntu-latest
119119
needs: build-package
120-
env:
121-
npm_config_registry: http://localhost:4873
122120
strategy:
123121
matrix:
124122
deno: ['1.x', '2.x']
@@ -178,6 +176,7 @@ jobs:
178176
if: ${{ matrix.deno == '1.x' }}
179177
env:
180178
STORAGE_JS_ENTRY: main
179+
npm_config_registry: http://localhost:4873
181180
run: |
182181
cd packages/core/supabase-js/test/deno
183182
npm install
@@ -186,6 +185,8 @@ jobs:
186185
187186
- name: Run Deno Tests
188187
if: ${{ matrix.deno == '2.x' }}
188+
env:
189+
npm_config_registry: http://localhost:4873
189190
run: |
190191
cd packages/core/supabase-js/test/deno
191192
npm install
@@ -271,8 +272,6 @@ jobs:
271272
name: Next.js Integration
272273
runs-on: ubuntu-latest
273274
needs: build-package
274-
env:
275-
npm_config_registry: http://localhost:4873
276275
steps:
277276
- name: Checkout code
278277
uses: actions/checkout@v4
@@ -323,6 +322,8 @@ jobs:
323322
run: npx playwright install --with-deps
324323

325324
- name: Run integration tests
325+
env:
326+
npm_config_registry: http://localhost:4873
326327
run: |
327328
cd packages/core/supabase-js/test/integration/next
328329
npm install --legacy-peer-deps
@@ -339,8 +340,6 @@ jobs:
339340
name: Expo Tests
340341
runs-on: ubuntu-latest
341342
needs: build-package
342-
env:
343-
npm_config_registry: http://localhost:4873
344343
steps:
345344
- name: Checkout code
346345
uses: actions/checkout@v4
@@ -388,6 +387,8 @@ jobs:
388387
supabase db query "select id, name from storage.buckets where id = 'test-bucket';"
389388
390389
- name: Install test dependencies and run tests
390+
env:
391+
npm_config_registry: http://localhost:4873
391392
run: |
392393
cd packages/core/supabase-js/test/integration/expo
393394
npm install
@@ -403,8 +404,6 @@ jobs:
403404
name: Bun Integration
404405
runs-on: ubuntu-latest
405406
needs: build-package
406-
env:
407-
npm_config_registry: http://localhost:4873
408407
steps:
409408
- name: Checkout code
410409
uses: actions/checkout@v4
@@ -457,6 +456,8 @@ jobs:
457456
supabase db query "select id, name from storage.buckets where id = 'test-bucket';"
458457
459458
- name: Install dependencies and run tests
459+
env:
460+
npm_config_registry: http://localhost:4873
460461
run: |
461462
cd packages/core/supabase-js/test/integration/bun
462463
bun install

0 commit comments

Comments
 (0)