diff --git a/.npmignore b/.npmignore index b7e4f4ad..8003ae98 100644 --- a/.npmignore +++ b/.npmignore @@ -5,4 +5,5 @@ work tmp .env .coveralls.yml -coverage \ No newline at end of file +coverage +{YOUR_LIB}-*.tgz diff --git a/.travis.yml b/.travis.yml index b654df34..818dc177 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,14 +8,16 @@ notifications: email: false before_install: -- npm install --global nyc mocha typescript rimraf +- npm install --global nyc mocha typescript rimraf shx + install: - npm install -script: -- npm run clean +before_script: - npm run build + +script: - npm run build-docs - npm run tslint - npm run coveralls @@ -23,3 +25,22 @@ script: branches: only: - master + +after_success: +- npm run typedoc +- npm pack + +deploy: + - provider: releases + api_key: $GITHUB_TOKEN + file_glob: true + file: "{YOURLIB}-*.tgz" + skip_cleanup: true + on: + tags: true + - provider: npm + skip_cleanup: true + email: "operations@pragmatismo.io" + api_key: $NPM_TOKEN + on: + tags: true \ No newline at end of file