fix(ci): use full message for COMMIT_MSG

[release]
This commit is contained in:
pooya parsa 2019-01-04 23:14:01 +03:30
parent ee0096bf59
commit cc358b54c4

View File

@ -23,7 +23,7 @@ release: &release
name: release
command: |
if [ -z "$COMMIT_MSG" ]; then
COMMIT_MSG=$(git log --format=oneline -n 1 $CIRCLE_SHA1)
COMMIT_MSG=$(git --no-pager log --pretty=full -n1 $CIRCLE_SHA1)
fi
if echo "$COMMIT_MSG" | grep -o "\[release\]"; then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc