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
1 changed files with 1 additions and 3 deletions

View File

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