mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(ci): support skip release in commit body
This commit is contained in:
parent
b3ff7a105f
commit
4eff50f5b6
@ -115,17 +115,16 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: release
|
name: release
|
||||||
command: |
|
command: |
|
||||||
if [[ $GIT_COMMIT_MSG != *"\[skip release\]"* ]]; then
|
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 skiped 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 release --yes
|
yarn release --yes
|
||||||
PACKAGE_SUFFIX=edge yarn build
|
PACKAGE_SUFFIX=edge yarn build
|
||||||
./scripts/workspace-run npm publish -q
|
./scripts/workspace-run npm publish -q
|
||||||
else
|
|
||||||
echo "Release phase is skiped since [skip release] in commit message."
|
|
||||||
fi
|
fi
|
||||||
environment:
|
|
||||||
GIT_COMMIT_MSG: $(git log --format=oneline -n 1 $CIRCLE_SHA1)
|
|
||||||
|
|
||||||
# Workflow definition
|
# Workflow definition
|
||||||
workflows:
|
workflows:
|
||||||
|
Loading…
Reference in New Issue
Block a user