diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index 75d38f43b5cf..c774e46df60b 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -21,6 +21,7 @@ on: - jest.config.mjs - packages/** - tsconfig.json + - admin/verdaccio.yaml - .github/workflows/tests-e2e.yml concurrency: diff --git a/admin/verdaccio.yaml b/admin/verdaccio.yaml index 1e8c71c5a83e..bd49be44f15e 100644 --- a/admin/verdaccio.yaml +++ b/admin/verdaccio.yaml @@ -13,11 +13,30 @@ storage: ../storage +# Verdaccio does not allow to publish packages when the client is offline, to avoid +# errors on publish +# https://verdaccio.org/docs/configuration#offline-publish +publish: + allow_offline: false + # A list of other known repositories we can talk to uplinks: npmjs: url: https://registry.npmjs.org/ packages: + # Forked packages need to be fetched from npm + '@docusaurus/react-loadable': + access: $all + publish: $all + proxy: npmjs + # Group and isolate all local packages, avoid being proxy from outside + '@docusaurus/*': + access: $all + publish: $all + '@*/*': + access: $all + publish: $authenticated + proxy: npmjs '**': # Allow all users (including non-authenticated users) to read and # publish all packages