From eb41d3a38e79f7026f68a41c27350d1dc422c581 Mon Sep 17 00:00:00 2001 From: Juan Picado Date: Wed, 11 Dec 2024 19:35:57 +0100 Subject: [PATCH] fix registry --- .github/workflows/e2e-ci.yml | 8 ++++---- .github/workflows/e2e-ui-ci.yml | 4 ++-- .github/workflows/update-canary.yml | 4 ++-- e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml | 2 +- tools/cli-commons/tests/server-query.test.ts | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/e2e-ci.yml b/.github/workflows/e2e-ci.yml index 9d99bfe..ff70003 100644 --- a/.github/workflows/e2e-ci.yml +++ b/.github/workflows/e2e-ci.yml @@ -27,9 +27,9 @@ jobs: pnpm config set store-dir ~/.pnpm-store - name: Set up .npmrc run: | - echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc + echo "//rg.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc - name: registry - run: npm config set registry https://registry.verdaccio.org + run: npm config set registry https://rg.verdaccio.org - name: Install run: pnpm install - name: Cache .pnpm-store @@ -73,9 +73,9 @@ jobs: key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }} - name: Set up .npmrc run: | - echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc + echo "//rg.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc - name: registry - run: npm config set registry https://registry.verdaccio.org + run: npm config set registry https://rg.verdaccio.org - name: Install run: pnpm install --frozen-lockfile - uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3 diff --git a/.github/workflows/e2e-ui-ci.yml b/.github/workflows/e2e-ui-ci.yml index 246fb87..f34ce67 100644 --- a/.github/workflows/e2e-ui-ci.yml +++ b/.github/workflows/e2e-ui-ci.yml @@ -29,9 +29,9 @@ jobs: node-version-file: '.nvmrc' - name: Set up .npmrc run: | - echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc + echo "//rg.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc - name: registry - run: npm config set registry https://registry.verdaccio.org + run: npm config set registry https://rg.verdaccio.org - name: Install pnpm run: | corepack enable diff --git a/.github/workflows/update-canary.yml b/.github/workflows/update-canary.yml index 60500bf..539277a 100644 --- a/.github/workflows/update-canary.yml +++ b/.github/workflows/update-canary.yml @@ -29,9 +29,9 @@ jobs: run: corepack prepare pnpm@latest-8 --activate - name: Set up .npmrc run: | - echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc + echo "//rg.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc - name: registry - run: npm config set registry https://registry.verdaccio.org + run: npm config set registry https://rg.verdaccio.org - name: install run: pnpm install - name: update to latest canary diff --git a/e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml b/e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml index 56a7938..d0db1b5 100644 --- a/e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml +++ b/e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml @@ -11,7 +11,7 @@ web: uplinks: npmjs: - url: https://registry.verdaccio.org/ + url: https://rg.verdaccio.org/ max_fails: 30 fail_timeout: 10m timeout: 60s diff --git a/tools/cli-commons/tests/server-query.test.ts b/tools/cli-commons/tests/server-query.test.ts index b2a959e..fc59a5e 100644 --- a/tools/cli-commons/tests/server-query.test.ts +++ b/tools/cli-commons/tests/server-query.test.ts @@ -25,17 +25,17 @@ describe('server query', () => { }); test('fetch debug ok', async () => { - nock('https://registry.verdaccio.org').get(`/-/_debug`).reply(201, { ok: 'debug' }); + nock('https://rg.verdaccio.org').get(`/-/_debug`).reply(201, { ok: 'debug' }); expect(true).toBeTruthy(); - const server = new ServerQuery('https://registry.verdaccio.org'); + const server = new ServerQuery('https://rg.verdaccio.org'); const query = await server.debug(); query.status(201).body_ok(/debug/); }); test('fetch debug fail', async () => { - nock('https://registry.verdaccio.org').get(`/-/_debug`).reply(500, { error: 'fail debug' }); + nock('https://rg.verdaccio.org').get(`/-/_debug`).reply(500, { error: 'fail debug' }); expect(true).toBeTruthy(); - const server = new ServerQuery('https://registry.verdaccio.org'); + const server = new ServerQuery('https://rg.verdaccio.org'); const query = await server.debug(); query.status(500).body_error(/fail debug/); });