Deploy a specific directory to npm with Travis-CI

Viewed 2498

I want to deploy the dist folder after success. But instead, it keeps deploying the whole repository.

What I want to achieve is the same effect with:

npm publish dist

Here is the related part from my .travis.yml:

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
1 Answers
Related