@@ -22,29 +22,18 @@ RELEASE_TYPE="${RELEASE_TYPE:-prod}"
2222
2323echo " Tracking release: $SDK_NAME v$VERSION (type: $RELEASE_TYPE )"
2424
25- # Determine the target triple for the current platform
26- OS=$( uname -s)
27- ARCH=$( uname -m)
28- case " $OS -$ARCH " in
29- Darwin-arm64) TARGET=" aarch64-apple-darwin" ;;
30- Darwin-x86_64) TARGET=" x86_64-apple-darwin" ;;
31- Linux-aarch64) TARGET=" aarch64-unknown-linux-gnu" ;;
32- Linux-x86_64) TARGET=" x86_64-unknown-linux-gnu" ;;
33- * )
34- echo " Warning: Unsupported platform $OS -$ARCH . Skipping release tracking."
35- exit 0
36- ;;
37- esac
38-
39- SMALL_THINGS_BIN=$( mktemp /tmp/small-things.XXXXXX)
40- DOWNLOAD_URL=" https://github.com/smallcase/small-things/releases/latest/download/small-things-$TARGET "
41-
42- if ! curl -fsSL " $DOWNLOAD_URL " -o " $SMALL_THINGS_BIN " 2>&1 ; then
43- echo " Warning: Failed to download small-things binary. Skipping release tracking."
44- rm -f " $SMALL_THINGS_BIN "
25+ if [ -z " ${GITHUB_ACCESS_TOKEN:- } " ]; then
26+ echo " Warning: GITHUB_ACCESS_TOKEN not set. Skipping release tracking."
4527 exit 0
4628fi
47- chmod +x " $SMALL_THINGS_BIN "
29+
30+ if ! curl -fsSL -H " Authorization: token $GITHUB_ACCESS_TOKEN " \
31+ https://raw.githubusercontent.com/smallcase/small-things/main/install.sh | bash -s -- latest " $GITHUB_ACCESS_TOKEN " ; then
32+ echo " Warning: Failed to install small-things. Skipping release tracking."
33+ exit 0
34+ fi
35+
36+ export PATH=" $HOME /.deno/bin:$PATH "
4837
4938TRACK_ARGS=(
5039 --platform react-native
@@ -55,7 +44,6 @@ TRACK_ARGS=(
5544)
5645[ -n " ${NOTIFY_WEBHOOK_URL:- } " ] && TRACK_ARGS+=( --webhookUrl " $NOTIFY_WEBHOOK_URL " )
5746
58- " $SMALL_THINGS_BIN " gw track-release " ${TRACK_ARGS[@]} " 2>&1 || {
47+ small-things gw track-release " ${TRACK_ARGS[@]} " 2>&1 || {
5948 echo " Warning: Failed to track release in small-things (non-critical - release was successful)"
6049}
61- rm -f " $SMALL_THINGS_BIN "
0 commit comments