Skip to content

Commit

Permalink
chore: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Bühler committed Jul 27, 2017
1 parent d003cfa commit a746a7a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
35 changes: 20 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
language: node_js

cache:
directories:
- node_modules

notifications:
email: false

node_js:
- '8'
- '6'
- '8'
- '6'

script: npm run citest
after_script: npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
before_script:
- npm prune

before_deploy:
- npm run bootstrap
- tsc --outDir .
after_success:
- npm install coveralls@^2.11.9 && cat ./coverage/lcov.info | coveralls
- npm i
- npm run build
- npm run semantic-release

deploy:
provider: npm
email: [email protected]
api_key:
secure: NoAP3zXpaw7efTltwCT5v//pWSTsCk1pvMVR02gFimdOI4kc9yr45GUAemmMBKDMPyxqwS2rJHl1A6Wps+P6gz2oMAFyioiK5TZI0qQNTVu9ggD7d1hlCr5Is1WZckblU863YckES6u+HoO0eXFC3iGZnh+1BldbTPR1PA9LWFJPGsZzJsDQRpxOWY6TLKRPlE53QmdclcIc//o4vVCldrCAdKojGlOVKhc03IaWt4i+onCszP81rUYkTTPdE2ODwQZrlbn1D01ojPu8UvPM4REKB90P+C9J/9PL1LR95UjHNPr2+nsa5dmbI2IQhAEudvAKOyBJV27DfZ2AcNNQyXc1e3OnH7zhP3Y19rceTzk0DOXnXKrQbzZEZ9ICnPfxv5PaQ+vOFJB4XkyrrF7LBWqNMRiYywt+vCBRelU7RUepXtO5wcj4TJmXUyB2fESL4W90HtPh1AZNvRPL2dH2DZF3tE2XSnG0MSHbwcrO+9ZUFZ2xBxCNM4WW5VCzH5H9z+ieLYqQmDwjBCgQp52Nw5UnJSmHk72Tlbbzphg4e7e40xH00AIVfLQiBHzEMOyRfZbtvS7cI/1SSMpP/sU+9rFUl5GiavupPVbFnzDUNBltXOk6HSaFtlarafO2llUcAGgxRithYLpjGbD1/4ZU+5NyOR4AFBejj0oq1cDAn7Y=
on:
tags: true
repo: smartive/proc-that-elastic-loader
branches:
except:
- /^v\d+\.\d+\.\d+$/
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proc-that-elastic-loader",
"version": "0.4.0",
"version": "0.0.0-development",
"description": "Loader for proc-that. Loads processed items into an elasticsearch index.",
"main": "index.js",
"scripts": {
Expand All @@ -9,7 +9,8 @@
"develop": "npm run clean && tsc -p .",
"lint": "tslint -c ./tslint.json -p ./config/tsconfig.build.json",
"test": "npm run lint && npm run clean && jest -c ./jest.json",
"test:watch": "npm run clean && jest -c ./jest.json --watch"
"test:watch": "npm run clean && jest -c ./jest.json --watch",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [
"etl",
Expand Down Expand Up @@ -37,7 +38,8 @@
"tslint": "^5.5.0",
"tslint-config-airbnb": "^5.2.1",
"tsutils": "^2.8.0",
"typescript": "^2.4.2"
"typescript": "^2.4.2",
"semantic-release": "^6.3.6"
},
"dependencies": {
"elasticsearch": "^13.2.0",
Expand Down

0 comments on commit a746a7a

Please sign in to comment.