ci: add [skip release]

This commit is contained in:
Clark Du 2018-11-23 11:36:07 +00:00
parent 4adbf29e18
commit 2b05dafe90
1 changed files with 11 additions and 5 deletions

View File

@ -115,11 +115,17 @@ jobs:
- run: - run:
name: release name: release
command: | command: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc if [[ $GIT_COMMIT_MSG == *"[skip release]"* ]]; then
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
yarn release --yes echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
PACKAGE_SUFFIX=edge yarn build yarn release --yes
./scripts/workspace-run npm publish -q PACKAGE_SUFFIX=edge yarn build
./scripts/workspace-run npm publish -q
else
echo "Release phase is skiped since [skip release] in commit message."
fi
environment:
GIT_COMMIT_MSG: $(git log --format=oneline -n 1 $CIRCLE_SHA1)
# Workflow definition # Workflow definition
workflows: workflows: