From 964019aa04a3d401093441e68b08c0cfe143b395 Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Tue, 28 Nov 2017 17:21:15 +0100 Subject: [PATCH] add option to skip publish from commit message --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ec920c850..507171b88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: @@ -40,3 +42,5 @@ jobs: provider: script script: npm run publish-master skip_cleanup: true + on: + condition: '! $TRAVIS_COMMIT_MESSAGE =~ \[skip\ publish\]'