Skip to content

Commit

Permalink
Update script: make-dev-releases tags
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Feb 20, 2024
1 parent 0cbdbde commit 8d22f70
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/make-dev-releases
Original file line number Diff line number Diff line change
Expand Up @@ -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:
#
Expand Down Expand Up @@ -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;;
Expand All @@ -68,23 +68,23 @@ 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;;
[Nn]* ) exit;;
* ) echo "Please answer y or n.";;
esac
done
npm publish --tag canal-worker
npm publish --tag canal-v4

0 comments on commit 8d22f70

Please sign in to comment.