publish-to-verdaccio.sh 756 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # A shell script which publishes all packages to a local Verdaccio registry for testing / local dev purposes
  3. if [[ -z "${VERDACCIO_URL}" ]]; then
  4. VERDACCIO=http://localhost:4873/
  5. else
  6. VERDACCIO="${VERDACCIO_URL}"
  7. fi
  8. echo "Publishing to Verdaccio @ $VERDACCIO"
  9. cd ../packages/admin-ui-plugin && npm publish -reg $VERDACCIO &&\
  10. cd ../admin-ui && npm publish -reg $VERDACCIO &&\
  11. cd ../asset-server-plugin && npm publish -reg $VERDACCIO &&\
  12. cd ../common && npm publish -reg $VERDACCIO &&\
  13. cd ../core && npm publish -reg $VERDACCIO &&\
  14. cd ../create && npm publish -reg $VERDACCIO &&\
  15. cd ../elasticsearch-plugin && npm publish -reg $VERDACCIO &&\
  16. cd ../email-plugin && npm publish -reg $VERDACCIO
  17. cd ../testing && npm publish -reg $VERDACCIO