Skip to content

Commit

Permalink
Merge pull request #8 from pelias/semantic-release-build-stage
Browse files Browse the repository at this point in the history
feat(release): replace semantic-release dep with Travis build stages
  • Loading branch information
orangejulius authored Sep 11, 2018
2 parents 038cfaa + 2f99183 commit 6ea193d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ node_js:
- 10
matrix:
fast_finish: true
script: npm test
script: npm run travis
before_install:
- npm i -g npm
before_script:
- npm prune
after_success:
- npx semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
jobs:
include:
- stage: release
node_js: 10
script: curl "https://raw.githubusercontent.com/pelias/ci-tools/master/semantic-release.sh" | bash -
if: branch = production
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "node index.js",
"download": "node lib/prep_data.js",
"lint": "jshint .",
"travis": "true",
"validate": "npm ls"
},
"author": "fpurcell",
Expand All @@ -28,8 +29,7 @@
"through2": "^2.0.3"
},
"devDependencies": {
"precommit-hook": "^3.0.0",
"semantic-release": "^15.1.4"
"precommit-hook": "^3.0.0"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 6ea193d

Please sign in to comment.