mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 19:48:54 +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
|
||||
- packages/**
|
||||
- tsconfig.json
|
||||
- admin/verdaccio.yaml
|
||||
- .github/workflows/tests-e2e.yml
|
||||
|
||||
concurrency:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue