Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Oct 13, 2024
1 parent 12f6849 commit 8270e84
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/e2e-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,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 @@ -74,9 +74,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 @@ -31,9 +31,9 @@ jobs:

- 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: |
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 .npmrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
always-auth = true
recursive-install = true
loglevel=warn
registry=https://registry.verdaccio.org
registry=https://rg.verdaccio.org
fetch-retries=10
fetch-retry-factor=20
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 8270e84

Please sign in to comment.