Files
account-sdk/scripts/release.sh
Jungho Bang 43485c57e9 Publish prep (#125)
* rename the package

* Squashed commit of the following:

commit 26e68f9f6d1eac389c6329d06e20ca538484522c
Author: Jungho Bang <[email protected]>
Date:   Wed Feb 28 19:27:38 2024 -0700

    duh

commit 8ce4d4acabf6f1d5419ddd2561446e374ac0dcd7
Author: Jungho Bang <[email protected]>
Date:   Wed Feb 28 19:20:54 2024 -0700

    merge latest public

commit f047e9b975d1e92505aedeacb7cc16a4b38b3b3a
Merge: 9652bed4 e7b9c4c7
Author: Jungho Bang <[email protected]>
Date:   Wed Feb 28 19:19:30 2024 -0700

    Merge branch 'master' into jungho/publish-ready

    # Conflicts:
    #	apps/testapp/package.json
    #	packages/wallet-sdk/package.json
    #	packages/wallet-sdk/src/relay/mobile/MobileRelay.ts
    #	packages/wallet-sdk/src/relay/mobile/MobileRelayUI.ts
    #	packages/wallet-sdk/src/version.ts
    #	yarn.lock

commit 9652bed40a5e01fc9aefb7c8d1dac0f3150dd075
Author: Jungho Bang <[email protected]>
Date:   Wed Feb 28 19:16:08 2024 -0700

    move relay ui file for merging

commit e7b9c4c70b
Author: Pedro Rosário <[email protected]>
Date:   Sat Feb 24 01:03:36 2024 -0300

    Fix/deeplink from webview for android (#1121)

    * fix: anchor tag approach to cover both iOS and Android cases

    * fix: add expected target

    ---------

    Co-authored-by: Pedro Rosario <[email protected]>

commit e89bf32b76
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date:   Fri Feb 23 16:20:26 2024 -0800

    v3.9.2 (#1120)

    Co-authored-by: bangtoven <[email protected]>

commit d21f4fa7bd
Author: Pedro Rosário <[email protected]>
Date:   Fri Feb 23 21:17:34 2024 -0300

    fix redirecting on webviews (#1119)

    * fix redirecting on webviews

    * remove dead code

    * fix: typecheck

    ---------

    Co-authored-by: Pedro Rosario <[email protected]>

commit ba6190abbd
Author: Jungho Bang <[email protected]>
Date:   Fri Dec 8 15:18:29 2023 -0500

    use 3.9.1 on the test app (#1097)

* update yarn.lock

* cleanup release script

* update license / year

* update yarn.lock

* cleanup license

* Revert "update yarn.lock"

This reverts commit 4354e48dbffdb5698e722dbe09c26587dc8d7ace.

* fuck

* revert to public gha

* Revert "revert to public gha"

This reverts commit 45ee8551c34de59dd05c95591cef364483754dd4.

* update version
2024-02-28 22:28:28 -07:00

44 lines
1.3 KiB
Bash
Executable File

#! /bin/bash
# COLORS
REDBOLD='\033[1;31m'
RED='\033[0;31m'
PURPLE='\033[0;35m'
TEAL='\033[0;36m'
GREEN='\033[1;32m'
gitMessage=$(git log --oneline -n 1)
mainBranch="master"
branch=$(git rev-parse --abbrev-ref HEAD)
if [ $branch == $mainBranch ]; then
echo -e "${PURPLE} Checking all branches are up-to-date..."
echo -e "================================================="
echo -e " git fetch --all"
git fetch --all
echo -e " git pull"
git pull
echo -e "-------------------------------------------------"
echo -e "${TEAL} Build production and publish..."
echo "================================================="
echo -e "rm -rf ./node_modules"
rm -rf ./node_modules
rm -rf ./packages/wallet-sdk/node_modules
echo -e "rm -rf ./dist"
rm -rf ./packages/wallet-sdk/dist
echo -e "yarn install"
yarn install
echo -e "yarn workspace @coinbase/wallet-sdk build"
yarn workspace @coinbase/wallet-sdk build
echo -e "cd ./packages/wallet-sdk"
cd ./packages/wallet-sdk
echo "================================================="
echo -e " ${GREEN} run 'npm publish'"
echo "================================================="
else
echo -e "${RED}⚠️ Need to publish from ${mainBranch} branch"
echo -e "${REDBOLD}Checking out ${mainBranch}... "
git checkout master
echo -e "${RED}Run again"
fi