publish-to-verdaccio.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. # Move into the project root
  3. dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
  4. cd "$dir"
  5. # A shell script which publishes all packages to a local Verdaccio registry for testing / local dev purposes
  6. if [[ -z "${VERDACCIO_URL}" ]]; then
  7. VERDACCIO=http://localhost:4873/
  8. else
  9. VERDACCIO="${VERDACCIO_URL}"
  10. fi
  11. echo "Publishing to Verdaccio @ $VERDACCIO"
  12. cd ../packages/admin-ui-plugin && npm publish -reg $VERDACCIO &&\
  13. cd ../asset-server-plugin && npm publish -reg $VERDACCIO &&\
  14. cd ../common && npm publish -reg $VERDACCIO &&\
  15. cd ../core && npm publish -reg $VERDACCIO &&\
  16. cd ../create && npm publish -reg $VERDACCIO &&\
  17. cd ../elasticsearch-plugin && npm publish -reg $VERDACCIO &&\
  18. cd ../email-plugin && npm publish -reg $VERDACCIO &&\
  19. cd ../payments-plugin && npm publish -reg $VERDACCIO &&\
  20. cd ../testing && npm publish -reg $VERDACCIO &&\
  21. cd ../ui-devkit && npm publish -reg $VERDACCIO &&\
  22. cd ../job-queue-plugin && npm publish -reg $VERDACCIO &&\
  23. cd ../cli && npm publish -reg $VERDACCIO &&\
  24. cd ../harden-plugin && npm publish -reg $VERDACCIO &&\
  25. cd ../stellate-plugin && npm publish -reg $VERDACCIO &&\
  26. cd ../sentry-plugin && npm publish -reg $VERDACCIO &&\
  27. cd ../admin-ui/package && npm publish -reg $VERDACCIO