Browse Source

feat: set up semantic-release

pull/607/head
Julian Simioni 8 years ago
parent
commit
06b6db1cc6
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 8
      .travis.yml
  2. 9
      package.json

8
.travis.yml

@ -28,3 +28,11 @@ before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/

9
package.json

@ -1,7 +1,6 @@
{
"name": "pelias-api",
"author": "mapzen",
"version": "2.2.0",
"description": "Pelias API",
"homepage": "https://github.com/pelias/api",
"license": "MIT",
@ -16,11 +15,12 @@
"test": "npm run unit",
"travis": "npm test",
"unit": "./bin/units",
"validate": "npm ls"
"validate": "npm ls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git://github.com/pelias/api.git"
"url": "https://github.com/pelias/api.git"
},
"keywords": [
"pelias",
@ -68,7 +68,8 @@
"source-map": "^0.5.6",
"tap-dot": "1.0.5",
"tape": "^4.5.1",
"uglify-js": "^2.6.2"
"uglify-js": "^2.6.2",
"semantic-release": "^4.3.5"
},
"pre-commit": [
"lint",

Loading…
Cancel
Save