Skip to content

Commit

Permalink
Merge pull request #31 from locona/master
Browse files Browse the repository at this point in the history
fix(circleci) skip semantic release
  • Loading branch information
hamadakafu committed Jan 16, 2020
2 parents 89bc15d + 3848429 commit 887f7be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,16 @@ jobs:
<<: *defaults
steps:
- checkout
- run: npm i
- run: npx semantic-release --debug
- run:
name: semantic-release
command: |
if git log --format=%B -n 1 | grep -E '.*\[skip semantic-release\].*' >/dev/null; then
echo "[skip semantic-release]を含むのでskipします。"
else
echo "[skip semantic-release]を含まないのでsemantic-releaseを実行します。"
npm i
npx semantic-release --debug
fi
workflows:
version: 2
Expand Down
6 changes: 4 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@
]
}
}],
["@semantic-release/git", {
"message": "chore(release): ${nextRelease.version} [skip semantic-release]"
}]
"@semantic-release/changelog",
"@semantic-release/github",
"@semantic-release/git"
"@semantic-release/github"
]
}

Expand Down

0 comments on commit 887f7be

Please sign in to comment.