Skip to content

Commit 758d45f

Browse files
committed
Update script: make-dev-releases tags
1 parent 2eb2ce0 commit 758d45f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/make-dev-releases

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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
#
@@ -51,15 +51,15 @@ fi
5151

5252
current_branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
5353
date=$(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

5757
git checkout -b ${dev_branch}
58-
./scripts/update-version $version-worker.${date}${incr}
58+
./scripts/update-version $version-dev.${date}${incr}
5959
git add --all
6060
git commit -m "update version"
6161
while 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
6969
done
7070
git push origin ${dev_branch}
71-
npm publish --tag worker
71+
npm publish --tag dev-v4
7272

7373
git checkout $current_branch
7474

7575
git checkout -b ${canal_branch}
7676
git apply ./scripts/canal-release.patch
77-
./scripts/update-version $version-canal.worker.${date}${incr}
77+
./scripts/update-version $version-canal.${date}${incr}
7878
git add --all
7979
git commit -m "update version"
8080
git push origin ${canal_branch}
8181
while 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
8989
done
90-
npm publish --tag canal-worker
90+
npm publish --tag canal-v4

0 commit comments

Comments
 (0)