Skip to content

Commit

Permalink
add option to skip publish from commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Nov 28, 2017
1 parent da60c6b commit 014eda7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ stages:
- lint
- test
- name: publish
if: (branch = master) AND (repo = babel/minify)
if: repo = babel/minify
AND branch = master
AND type = push

jobs:
include:
Expand All @@ -40,3 +42,5 @@ jobs:
provider: script
script: npm run publish-master
skip_cleanup: true
on:
condition: '! $TRAVIS_COMMIT_MESSAGE =~ \[skip\ publish\]'

0 comments on commit 014eda7

Please # to comment.