diff --git a/scripts/make-dev-releases b/scripts/make-dev-releases index 80b762cd46..dee03c55ee 100755 --- a/scripts/make-dev-releases +++ b/scripts/make-dev-releases @@ -4,7 +4,7 @@ # ================= # # This script produces pre-releases on top of the current branch for the -# `worker` and `canal-worker` versions (as per their npm tags). +# `dev` and `canal` versions (as per their npm tags). # # To use it: # @@ -51,15 +51,15 @@ fi current_branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') date=$(date "+%Y%m%d") -dev_branch="release/v${version}-worker.${date}${incr}" -canal_branch="release/v${version}-canal.worker.${date}${incr}" +dev_branch="release/v${version}-dev.${date}${incr}" +canal_branch="release/v${version}-canal.${date}${incr}" git checkout -b ${dev_branch} -./scripts/update-version $version-worker.${date}${incr} +./scripts/update-version $version-dev.${date}${incr} git add --all git commit -m "update version" while true; do - read -n1 -p "Do you wish to push and publish the worker build? [y/n] " yn + read -n1 -p "Do you wish to push and publish the dev build? [y/n] " yn echo "" case $yn in [Yy]* ) break;; @@ -68,18 +68,18 @@ while true; do esac done git push origin ${dev_branch} -npm publish --tag worker +npm publish --tag dev-v4 git checkout $current_branch git checkout -b ${canal_branch} git apply ./scripts/canal-release.patch -./scripts/update-version $version-canal.worker.${date}${incr} +./scripts/update-version $version-canal.${date}${incr} git add --all git commit -m "update version" git push origin ${canal_branch} while true; do - read -n1 -p "Do you wish to push and publish the canal-worker build? [y/n] " yn + read -n1 -p "Do you wish to push and publish the canal build? [y/n] " yn echo "" case $yn in [Yy]* ) break;; @@ -87,4 +87,4 @@ while true; do * ) echo "Please answer y or n.";; esac done -npm publish --tag canal-worker +npm publish --tag canal-v4