Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

sdk(resources): update-mobile-rnsdk-version script (#13655)

Calinteodor5e2f7454072d
diff --git a/resources/update-mobile-rnsdk-version.sh b/resources/update-mobile-rnsdk-version.sh
new file mode 100755
index 0000000000..28e92a981e
--- /dev/null
+++ b/resources/update-mobile-rnsdk-version.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+set -e -u
+
+if [[ $# -ne 1 ]]; then
+ echo "Please specify a version"
+ exit 1
+fi
+
+THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
+VERSION=$1
+
+npm version --prefix ${THIS_DIR}/../react-native-sdk "${VERSION}" --no-git-tag-version
+
+npm install --prefix ${THIS_DIR}/../react-native-sdk
+
+git add .
+
+git commit -m "updated @jitsi/react-native-sdk version to ${VERSION}"
+
+git push