diff --git a/scripts/tag-and-release.sh b/scripts/tag-and-release.sh index b20a082ac..b0cbbce3f 100644 --- a/scripts/tag-and-release.sh +++ b/scripts/tag-and-release.sh @@ -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