Skip to content

Commit

Permalink
fix registry
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Dec 11, 2024
1 parent aa6174a commit eb41d3a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-ui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion e2e/cli/e2e-yarn1/config/_bootstrap_verdaccio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tools/cli-commons/tests/server-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand Down

0 comments on commit eb41d3a

Please sign in to comment.