You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update-mobile-rnsdk-version.sh 381B

1234567891011121314151617181920
  1. #!/bin/bash
  2. set -e -u
  3. if [[ $# -ne 1 ]]; then
  4. echo "Please specify a version"
  5. exit 1
  6. fi
  7. THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
  8. VERSION=$1
  9. pushd ${THIS_DIR}/../react-native-sdk
  10. npm version "${VERSION}" --no-git-tag-version --allow-same-version
  11. node update_sdk_dependencies.js
  12. npm install
  13. npm audit fix
  14. popd