-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrelease.sh
executable file
·32 lines (23 loc) · 1.06 KB
/
release.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
#!/bin/bash
set -e
#!/bin/bash
if [[ "$1" != "patch" && "$1" != "minor" && "$1" != "major" ]]; then
echo "Error: Argument must be 'patch', 'minor', or 'major'"
exit 1 # Exit with a status of 1 to indicate an error
fi
echo "copy doc/ to sourcepoint_unified_cmp..."
# serve static files within documentation from github
# this reduced package size
sed 's/(\.\/doc\/images\//(https\:\/\/github\.com\/thekorn\/sourcepoint_unified_cmp\/raw\/main\/doc\/images\//g' README.md > packages/sourcepoint_unified_cmp/README.md
sed 's/(\.\/doc\/images\//(https\:\/\/github\.com\/thekorn\/sourcepoint_unified_cmp\/raw\/main\/doc\/images\//g' CONTRIBUTING.md > packages/sourcepoint_unified_cmp/CONTRIBUTING.md
git add .
melos version \
-V sourcepoint_unified_cmp:$1 \
-V sourcepoint_unified_cmp_android:$1 \
-V sourcepoint_unified_cmp_ios:$1 \
-V sourcepoint_unified_cmp_platform_interface:$1 \
-V sourcepoint_unified_cmp_flutter_webview_extension:$1 \
-V sourcepoint_unified_cmp_flutter_inappwebview_extension:$1 \
-r
melos publish --no-dry-run
git push