diff --git a/.travis.yml b/.travis.yml
index 25b91c027bf52d3706f5fb37af64953d7a475eb3..6750d37345783c4f11fc74e3d3d23998938d9e60 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,11 @@
 language: node_js
 node_js:
-- '0.10'
+  - '0.10'
 script:
-- make test-ci
+  - make test-ci
+after_script:
+  - git branch -d production
+  - git checkout -b production
 deploy:
   provider: npm
   email: tatsy.mail@gmail.com
@@ -11,3 +14,4 @@ deploy:
   on:
     tags: true
     repo: tatsy/markdown-it-imsize
+    branch: production