Added a release script.

This commit is contained in:
Chris Kleeschulte 2017-10-09 18:10:01 -04:00
parent 290e662b82
commit e1d1cc3ba5
No known key found for this signature in database
GPG Key ID: 33195D27EF6BDB7F
1 changed files with 127 additions and 127 deletions

View File

@ -31,145 +31,145 @@ echo "Assuming projects at ${HOME}/source..."
# bitcore-node
#############################################
#echo ""
#echo "Starting with bitcore-node..."
#sleep 2
#pushd ~/source/zzbitcore_node
echo ""
echo "Starting with bitcore-node..."
sleep 2
pushd ~/source/zzbitcore_node
#bump_version
#npm install
#
#git add .
#git diff --staged
#echo ""
#echo -n 'Resume?: (Y/n): '
#
#read ans
#
#if [ "${ans}" == 'n' ]; then
# echo "Exiting as requested."
# exit 0
#fi
#
#echo ""
#echo "Committing changes for bitcore-node..."
#sleep 2
#git commit -S
#
#echo ""
#echo "Pushing changes to Github..."
#git push origin master && git push upstream master
bump_version
npm install
#echo ""
#echo "Signing a tag"
#git tag -s "${tag}" -m"${tag}"
#
#
#echo ""
#echo "Pushing the tag to upstream..."
#git push upstream "${tag}"
#
#echo ""
#echo "Publishing to npm..."
#npm publish --tag beta
#
#popd
git add .
git diff --staged
echo ""
echo -n 'Resume?: (Y/n): '
read ans
if [ "${ans}" == 'n' ]; then
echo "Exiting as requested."
exit 0
fi
echo ""
echo "Committing changes for bitcore-node..."
sleep 2
git commit -S
echo ""
echo "Pushing changes to Github..."
git push origin master && git push upstream master
echo ""
echo "Signing a tag"
git tag -s "${tag}" -m"${tag}"
echo ""
echo "Pushing the tag to upstream..."
git push upstream "${tag}"
echo ""
echo "Publishing to npm..."
npm publish --tag beta
popd
#############################################
# insight-api
#############################################
#echo ""
#echo "Releasing insight-api..."
#sleep 2
#pushd ~/source/insight-api
#
#bump_version
#npm install
#
#git add .
#git diff --staged
#echo ""
#echo -n 'Resume?: (Y/n): '
#
#read ans
#
#if [ "${ans}" == 'n' ]; then
# echo "Exiting as requested."
# exit 0
#fi
#
#echo ""
#echo "Committing changes for insight-api..."
#sleep 2
#git commit -S
#
#echo ""
#echo "Pushing changes to Github..."
#git push origin master && git push upstream master
#
#echo ""
#echo "Signing a tag"
#git tag -s "${tag}" -m"${tag}"
#
#
#echo ""
#echo "Pushing the tag to upstream..."
#git push upstream "${tag}"
#
#echo ""
#echo "Publishing to npm..."
#npm publish --tag beta
#
#popd
echo ""
echo "Releasing insight-api..."
sleep 2
pushd ~/source/insight-api
bump_version
npm install
git add .
git diff --staged
echo ""
echo -n 'Resume?: (Y/n): '
read ans
if [ "${ans}" == 'n' ]; then
echo "Exiting as requested."
exit 0
fi
echo ""
echo "Committing changes for insight-api..."
sleep 2
git commit -S
echo ""
echo "Pushing changes to Github..."
git push origin master && git push upstream master
echo ""
echo "Signing a tag"
git tag -s "${tag}" -m"${tag}"
echo ""
echo "Pushing the tag to upstream..."
git push upstream "${tag}"
echo ""
echo "Publishing to npm..."
npm publish --tag beta
popd
#############################################
# insight-ui
#############################################
#echo ""
#echo "Releasing insight-ui..."
#sleep 2
#pushd ~/source/insight-ui
#
#bump_version
#npm install
#
#git add .
#git diff --staged
#echo ""
#echo -n 'Resume?: (Y/n): '
#
#read ans
#
#if [ "${ans}" == 'n' ]; then
# echo "Exiting as requested."
# exit 0
#fi
#
#echo ""
#echo "Committing changes for insight-ui..."
#sleep 2
#git commit -S
#
#echo ""
#echo "Pushing changes to Github..."
#git push origin master && git push upstream master
#
#echo ""
#echo "Signing a tag"
#git tag -s "${tag}" -m"${tag}"
#
#
#echo ""
#echo "Pushing the tag to upstream..."
#git push upstream "${tag}"
#
#echo ""
#echo "Publishing to npm..."
#npm publish --tag beta
#
#popd
echo ""
echo "Releasing insight-ui..."
sleep 2
pushd ~/source/insight-ui
bump_version
npm install
git add .
git diff --staged
echo ""
echo -n 'Resume?: (Y/n): '
read ans
if [ "${ans}" == 'n' ]; then
echo "Exiting as requested."
exit 0
fi
echo ""
echo "Committing changes for insight-ui..."
sleep 2
git commit -S
echo ""
echo "Pushing changes to Github..."
git push origin master && git push upstream master
echo ""
echo "Signing a tag"
git tag -s "${tag}" -m"${tag}"
echo ""
echo "Pushing the tag to upstream..."
git push upstream "${tag}"
echo ""
echo "Publishing to npm..."
npm publish --tag beta
popd
#############################################
# bitcore