mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
14 lines
304 B
Bash
Executable file
14 lines
304 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
VERSION=$1
|
|
|
|
tmp_registry_log=`mktemp`
|
|
|
|
npm i -g verdaccio@$VERSION
|
|
# start in the background the registry
|
|
nohup verdaccio &>$tmp_registry_log &
|
|
# wait until has started (using stdout)
|
|
grep -q 'http address' <(tail -f $tmp_registry_log)
|
|
npm set registry http://localhost:4873
|