Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed May 23, 2022
1 parent 1bc9949 commit 50ef6bd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/integration-tests/utils/local-registry.sh
Expand Up @@ -7,10 +7,15 @@ default_verdaccio_package=verdaccio@~4.11.1

function startLocalRegistry {
# Start local registry
tmp_registry_log=`mktemp`
tmp_registry_log=$(mktemp)
echo "Registry output file: $tmp_registry_log"
(cd && nohup npx verdaccio@~5.1.2 -c $1 &>$tmp_registry_log &)
YARN_IGNORE_PATH=1 yarn global add verdaccio-memory@~10.0.0
if [[ $(YARN_IGNORE_PATH=1 yarn --version) == "1"* ]]; then
YARN_IGNORE_PATH=1 yarn global add verdaccio-memory@~10.0.0
else
yarn dlx verdaccio-memory@~10.0.0
fi

# Wait for Verdaccio to boot
grep -q "http address" <(tail -f $tmp_registry_log)

Expand Down

0 comments on commit 50ef6bd

Please sign in to comment.