Skip to content

Commit

Permalink
chore: add semantic-release
Browse files Browse the repository at this point in the history
- Add github-post-release to address semantic-release/semantic-release#363
- Change default dist-tag to "dev"
  • Loading branch information
yangchristian committed Jul 10, 2017
1 parent 320162a commit 3f6df3d
Show file tree
Hide file tree
Showing 3 changed files with 1,268 additions and 41 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
language: node_js
cache:
directories:
- node_modules
node_js:
- 'node' # use latest stable nodejs version
script:
- npm test # test build to build and run ava tests
- npm run coverage # generate nyc report
after_script:
after_success:
- npm run semantic-release
- 'cat coverage/lcov.info | ./node_modules/.bin/coveralls' # sends the coverage report to coveralls
- npm prune
branches:
except:
- /^v\d+\.\d+\.\d+$/
18 changes: 15 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "crosslytics",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "crosslytics",
"license": "Apache-2.0",
"repository": "",
"repository": {
"type": "git",
"url": "https://github.com/CrossLead/crosslytics.git"
},
"author": "",
"keywords": [
""
Expand All @@ -24,17 +27,20 @@
"test": "npm run clean && tsc -p tsconfig.test.json --pretty && nyc --exclude \"**/*-spec.js\" ava \"**/*-spec.js\" --verbose",
"coverage": "nyc report --reporter=lcov --reporter=text --reporter=html",
"watch": "npm run build -- --watch",
"watch:test": "npm run test -- --watch"
"watch:test": "npm run test -- --watch",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {},
"devDependencies": {
"@types/node": "^7.0.0",
"ava": "^0.20.0",
"coveralls": "^2.0.0",
"github-post-release": "^1.7.1",
"husky": "^0.14.3",
"nyc": "^10.0.0",
"prettier": "^1.5.2",
"rimraf": "^2.0.0",
"semantic-release": "^6.3.6",
"tslint": "^5.0.0",
"tslint-config-prettier": "^1.1.0",
"typescript": "^2.0.0",
Expand All @@ -47,5 +53,11 @@
"require": [
"babel-register"
]
},
"release": {
"generateNotes": "github-post-release"
},
"publishConfig": {
"tag": "dev"
}
}
Loading

0 comments on commit 3f6df3d

Please sign in to comment.