mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-25 20:48:50 +02:00
test: improve e2e verdaccio configuration (#7967)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
3b9b497d13
commit
fd41f46176
2 changed files with 20 additions and 0 deletions
1
.github/workflows/tests-e2e.yml
vendored
1
.github/workflows/tests-e2e.yml
vendored
|
@ -21,6 +21,7 @@ on:
|
||||||
- jest.config.mjs
|
- jest.config.mjs
|
||||||
- packages/**
|
- packages/**
|
||||||
- tsconfig.json
|
- tsconfig.json
|
||||||
|
- admin/verdaccio.yaml
|
||||||
- .github/workflows/tests-e2e.yml
|
- .github/workflows/tests-e2e.yml
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
|
@ -13,11 +13,30 @@
|
||||||
|
|
||||||
storage: ../storage
|
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
|
# A list of other known repositories we can talk to
|
||||||
uplinks:
|
uplinks:
|
||||||
npmjs:
|
npmjs:
|
||||||
url: https://registry.npmjs.org/
|
url: https://registry.npmjs.org/
|
||||||
packages:
|
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
|
# Allow all users (including non-authenticated users) to read and
|
||||||
# publish all packages
|
# publish all packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue