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 0f04ec2 commit 964019a
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 964019a

Please # to comment.