44# =================
55#
66# This script produces pre-releases on top of the current branch for the
7- # `worker ` and `canal-worker ` versions (as per their npm tags).
7+ # `dev ` and `canal` versions (as per their npm tags).
88#
99# To use it:
1010#
5151
5252current_branch=$( git branch | sed -n -e ' s/^\* \(.*\)/\1/p' )
5353date=$( date " +%Y%m%d" )
54- dev_branch=" release/v${version} -worker .${date}${incr} "
55- canal_branch=" release/v${version} -canal.worker. ${date}${incr} "
54+ dev_branch=" release/v${version} -dev .${date}${incr} "
55+ canal_branch=" release/v${version} -canal.${date}${incr} "
5656
5757git checkout -b ${dev_branch}
58- ./scripts/update-version $version -worker .${date}${incr}
58+ ./scripts/update-version $version -dev .${date}${incr}
5959git add --all
6060git commit -m " update version"
6161while true ; do
62- read -n1 -p " Do you wish to push and publish the worker build? [y/n] " yn
62+ read -n1 -p " Do you wish to push and publish the dev build? [y/n] " yn
6363 echo " "
6464 case $yn in
6565 [Yy]* ) break ;;
@@ -68,23 +68,23 @@ while true; do
6868 esac
6969done
7070git push origin ${dev_branch}
71- npm publish --tag worker
71+ npm publish --tag dev-v4
7272
7373git checkout $current_branch
7474
7575git checkout -b ${canal_branch}
7676git apply ./scripts/canal-release.patch
77- ./scripts/update-version $version -canal.worker. ${date}${incr}
77+ ./scripts/update-version $version -canal.${date}${incr}
7878git add --all
7979git commit -m " update version"
8080git push origin ${canal_branch}
8181while true ; do
82- read -n1 -p " Do you wish to push and publish the canal-worker build? [y/n] " yn
82+ read -n1 -p " Do you wish to push and publish the canal build? [y/n] " yn
8383 echo " "
8484 case $yn in
8585 [Yy]* ) break ;;
8686 [Nn]* ) exit ;;
8787 * ) echo " Please answer y or n." ;;
8888 esac
8989done
90- npm publish --tag canal-worker
90+ npm publish --tag canal-v4
0 commit comments