Browse Source

feat: set up semantic-release

pull/607/head
Julian Simioni 9 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 - npm i -g npm@^2.0.0
before_script: before_script:
- npm prune - 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", "name": "pelias-api",
"author": "mapzen", "author": "mapzen",
"version": "2.2.0",
"description": "Pelias API", "description": "Pelias API",
"homepage": "https://github.com/pelias/api", "homepage": "https://github.com/pelias/api",
"license": "MIT", "license": "MIT",
@ -16,11 +15,12 @@
"test": "npm run unit", "test": "npm run unit",
"travis": "npm test", "travis": "npm test",
"unit": "./bin/units", "unit": "./bin/units",
"validate": "npm ls" "validate": "npm ls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/pelias/api.git" "url": "https://github.com/pelias/api.git"
}, },
"keywords": [ "keywords": [
"pelias", "pelias",
@ -68,7 +68,8 @@
"source-map": "^0.5.6", "source-map": "^0.5.6",
"tap-dot": "1.0.5", "tap-dot": "1.0.5",
"tape": "^4.5.1", "tape": "^4.5.1",
"uglify-js": "^2.6.2" "uglify-js": "^2.6.2",
"semantic-release": "^4.3.5"
}, },
"pre-commit": [ "pre-commit": [
"lint", "lint",

Loading…
Cancel
Save