chore(ci, edge): only release with [release] in commit body

This commit is contained in:
Pooya Parsa 2018-12-23 11:30:23 +03:30
parent ba50d3b392
commit 54186babe7

View File

@ -116,9 +116,7 @@ jobs:
name: release name: release
command: | command: |
GIT_COMMIT_MSG=`git --no-pager log --pretty=full -n1 $CIRCLE_SHA1` GIT_COMMIT_MSG=`git --no-pager log --pretty=full -n1 $CIRCLE_SHA1`
if echo "$GIT_COMMIT_MSG" | grep -o "\[skip release\]"; then if echo "$GIT_COMMIT_MSG" | grep -o "\[release\]"; then
echo "Release phase is skipped since [skip release] exists in commit message or body."
else
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
yarn lerna version --yes --no-git-tag-version --no-push yarn lerna version --yes --no-git-tag-version --no-push