-
Notifications
You must be signed in to change notification settings - Fork 45
/
update-version.sh
executable file
·36 lines (27 loc) · 1.07 KB
/
update-version.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -e
# Change version in native files
sed -i '' -e "s/\".*\"/\"$1\"/g" packages/core/ios/Sources/SdkVersion.swift
sed -i '' -e "s/\".*\"/\"$1\"/g" packages/core/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt
# Change version
yarn run lerna version $1 --ignore-changes --no-git-tag-version --no-push
yarn prepare
# prepare packages
yarn
yarn workspace @datadog/mobile-react-native pack
yarn workspace @datadog/mobile-react-navigation pack
yarn workspace @datadog/mobile-react-native-navigation pack
./check-release-content.sh -p packages/core/package.tgz > packages/core/release-content.txt
./check-release-content.sh -p packages/react-navigation/package.tgz > packages/react-navigation/release-content.txt
./check-release-content.sh -p packages/react-native-navigation/package.tgz > packages/react-native-navigation/release-content.txt
# Update example repo
(cd example &&
yarn
(cd ios && pod install --repo-update)
)
(cd example-new-architecture &&
yarn
(cd ios && RCT_NEW_ARCH_ENABLED=1 pod install --repo-update)
)
git add .
git commit -m "Bump to version $1"