publish-to-verdaccio.sh 819 B

12345678910111213141516171819202122
  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 ../asset-server-plugin && npm publish -reg $VERDACCIO &&\
  11. cd ../common && npm publish -reg $VERDACCIO &&\
  12. cd ../core && npm publish -reg $VERDACCIO &&\
  13. cd ../create && npm publish -reg $VERDACCIO &&\
  14. cd ../elasticsearch-plugin && npm publish -reg $VERDACCIO &&\
  15. cd ../email-plugin && npm publish -reg $VERDACCIO &&\
  16. cd ../testing && npm publish -reg $VERDACCIO &&\
  17. cd ../ui-devkit && npm publish -reg $VERDACCIO &&\
  18. cd ../admin-ui/package && npm publish -reg $VERDACCIO