diff --git a/.github/verdaccio/config.yaml b/.github/verdaccio/config.yaml index e95864876..818f02881 100644 --- a/.github/verdaccio/config.yaml +++ b/.github/verdaccio/config.yaml @@ -7,8 +7,9 @@ auth: store: memory: limit: 1000 -## we don't need any remote request uplinks: + npmjs: + url: https://registry.npmjs.org/ packages: '@*/*': access: $all @@ -20,4 +21,4 @@ middlewares: audit: enabled: true logs: - - {type: stdout, format: pretty, level: trace} \ No newline at end of file + - {type: stdout, format: pretty, level: trace} diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index a57347102..656ac3846 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -33,8 +33,6 @@ jobs: run: | git switch -c "pull-request" npm i -g {verdaccio,verdaccio-auth-memory,verdaccio-memory} - mkdir -p $HOME/.config/verdaccio - cp --verbose .github/verdaccio/config.yaml $HOME/.config/verdaccio/config.yaml - nohup verdaccio --config $HOME/.config/verdaccio/config.yaml &>mktemp & + nohup verdaccio --config .github/verdaccio/config.yaml &>mktemp & yarn verdaccio:release yarn verdaccio:integration diff --git a/scripts/verdaccio-integration.ts b/scripts/verdaccio-integration.ts index e1cc036ec..e1e4c4409 100644 --- a/scripts/verdaccio-integration.ts +++ b/scripts/verdaccio-integration.ts @@ -12,11 +12,9 @@ async function main() { await exec("yarn", OPTS) spinner.start("Linking create-react-app") await exec( - "npm i -g update-by-scope --registry https://registry.npmjs.org", + 'YARN_NPM_REGISTRY_SERVER=http://0.0.0.0:4873/ yarn up "@lingui/*" ', OPTS ) - await exec("npm config set registry http://0.0.0.0:4873/", OPTS) - await exec("update-by-scope @lingui", OPTS) spinner.succeed("Updated @lingui packages") spinner.start("Running tests")