Added a release script.
This commit is contained in:
parent
290e662b82
commit
e1d1cc3ba5
|
@ -31,145 +31,145 @@ echo "Assuming projects at ${HOME}/source..."
|
||||||
# bitcore-node
|
# bitcore-node
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Starting with bitcore-node..."
|
echo "Starting with bitcore-node..."
|
||||||
#sleep 2
|
sleep 2
|
||||||
#pushd ~/source/zzbitcore_node
|
pushd ~/source/zzbitcore_node
|
||||||
|
|
||||||
#bump_version
|
bump_version
|
||||||
#npm install
|
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
|
|
||||||
|
|
||||||
#echo ""
|
git add .
|
||||||
#echo "Signing a tag"
|
git diff --staged
|
||||||
#git tag -s "${tag}" -m"${tag}"
|
echo ""
|
||||||
#
|
echo -n 'Resume?: (Y/n): '
|
||||||
#
|
|
||||||
#echo ""
|
read ans
|
||||||
#echo "Pushing the tag to upstream..."
|
|
||||||
#git push upstream "${tag}"
|
if [ "${ans}" == 'n' ]; then
|
||||||
#
|
echo "Exiting as requested."
|
||||||
#echo ""
|
exit 0
|
||||||
#echo "Publishing to npm..."
|
fi
|
||||||
#npm publish --tag beta
|
|
||||||
#
|
echo ""
|
||||||
#popd
|
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
|
# insight-api
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Releasing insight-api..."
|
echo "Releasing insight-api..."
|
||||||
#sleep 2
|
sleep 2
|
||||||
#pushd ~/source/insight-api
|
pushd ~/source/insight-api
|
||||||
#
|
|
||||||
#bump_version
|
bump_version
|
||||||
#npm install
|
npm install
|
||||||
#
|
|
||||||
#git add .
|
git add .
|
||||||
#git diff --staged
|
git diff --staged
|
||||||
#echo ""
|
echo ""
|
||||||
#echo -n 'Resume?: (Y/n): '
|
echo -n 'Resume?: (Y/n): '
|
||||||
#
|
|
||||||
#read ans
|
read ans
|
||||||
#
|
|
||||||
#if [ "${ans}" == 'n' ]; then
|
if [ "${ans}" == 'n' ]; then
|
||||||
# echo "Exiting as requested."
|
echo "Exiting as requested."
|
||||||
# exit 0
|
exit 0
|
||||||
#fi
|
fi
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Committing changes for insight-api..."
|
echo "Committing changes for insight-api..."
|
||||||
#sleep 2
|
sleep 2
|
||||||
#git commit -S
|
git commit -S
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Pushing changes to Github..."
|
echo "Pushing changes to Github..."
|
||||||
#git push origin master && git push upstream master
|
git push origin master && git push upstream master
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Signing a tag"
|
echo "Signing a tag"
|
||||||
#git tag -s "${tag}" -m"${tag}"
|
git tag -s "${tag}" -m"${tag}"
|
||||||
#
|
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Pushing the tag to upstream..."
|
echo "Pushing the tag to upstream..."
|
||||||
#git push upstream "${tag}"
|
git push upstream "${tag}"
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Publishing to npm..."
|
echo "Publishing to npm..."
|
||||||
#npm publish --tag beta
|
npm publish --tag beta
|
||||||
#
|
|
||||||
#popd
|
popd
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# insight-ui
|
# insight-ui
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Releasing insight-ui..."
|
echo "Releasing insight-ui..."
|
||||||
#sleep 2
|
sleep 2
|
||||||
#pushd ~/source/insight-ui
|
pushd ~/source/insight-ui
|
||||||
#
|
|
||||||
#bump_version
|
bump_version
|
||||||
#npm install
|
npm install
|
||||||
#
|
|
||||||
#git add .
|
git add .
|
||||||
#git diff --staged
|
git diff --staged
|
||||||
#echo ""
|
echo ""
|
||||||
#echo -n 'Resume?: (Y/n): '
|
echo -n 'Resume?: (Y/n): '
|
||||||
#
|
|
||||||
#read ans
|
read ans
|
||||||
#
|
|
||||||
#if [ "${ans}" == 'n' ]; then
|
if [ "${ans}" == 'n' ]; then
|
||||||
# echo "Exiting as requested."
|
echo "Exiting as requested."
|
||||||
# exit 0
|
exit 0
|
||||||
#fi
|
fi
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Committing changes for insight-ui..."
|
echo "Committing changes for insight-ui..."
|
||||||
#sleep 2
|
sleep 2
|
||||||
#git commit -S
|
git commit -S
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Pushing changes to Github..."
|
echo "Pushing changes to Github..."
|
||||||
#git push origin master && git push upstream master
|
git push origin master && git push upstream master
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Signing a tag"
|
echo "Signing a tag"
|
||||||
#git tag -s "${tag}" -m"${tag}"
|
git tag -s "${tag}" -m"${tag}"
|
||||||
#
|
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Pushing the tag to upstream..."
|
echo "Pushing the tag to upstream..."
|
||||||
#git push upstream "${tag}"
|
git push upstream "${tag}"
|
||||||
#
|
|
||||||
#echo ""
|
echo ""
|
||||||
#echo "Publishing to npm..."
|
echo "Publishing to npm..."
|
||||||
#npm publish --tag beta
|
npm publish --tag beta
|
||||||
#
|
|
||||||
#popd
|
popd
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# bitcore
|
# bitcore
|
||||||
|
|
Loading…
Reference in New Issue