title: Deploy a specific directory to npm with Travis-CI
body: <p>I want to deploy the <code>dist</code> folder after success. But instead, it keeps deploying the whole repository.</p>
  
  <p>What I want to achieve is the same effect with:</p>
  
  <pre><code>npm publish dist
  </code></pre>
  
  <p>Here is the related part from my <code>.travis.yml</code>:</p>
  
  <pre><code>deploy:
    provider: npm
    email: sa.alemdar@hotmail.com
    api_key:
      secure: MyApiKey
    skip_cleanup: true
    file_glob: true
    file: "dist/**/*"
    on:
      tags: true
      repo: salemdar/angular2-cookie
  </code></pre>