Skip to content

Commit

Permalink
feat: Add semantic-release (#62)
Browse files Browse the repository at this point in the history
* feat: Add semantic-release

* fix: Remove changelog generator & bithound (#60)

* chore(changelog): Add semantic release changelog suppert

* chore(changelog): Use conventional changelog
  • Loading branch information
oleg-koval authored Sep 9, 2018
1 parent 2090f65 commit 816b629
Show file tree
Hide file tree
Showing 3 changed files with 3,159 additions and 186 deletions.
23 changes: 10 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
sudo: required

services:
- docker

language: node_js

install:
- yarn --ignore-engines

script:
- yarn run ci
- yarn danger ci

after_success:
- bithound check git@github.com:oleg-koval/ya-skeleton.git

notifications:
email: false
node_js:
- "8"
- "10"

# Skip builds for tags
if: tag IS blank
- '10'
- '9'
- '8'
after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
26 changes: 19 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
{
"name": "ya_skeleton",
"version": "1.4.0",
"version": "0.0.0-development",
"description": "",
"main": "index.js",
"engines": {
"node": ">=8",
"npm": ">=5"
},
"repository": "oleg-koval/ya-skeleton",
"scripts": {
"start": "nodemon ./bin/server | exec $LOGGER -o short",
"test": "mocha",
"test:docker": "docker-compose -f docker-compose.test.yml run tests && docker-compose down",
"lint": "eslint .",
"ci": "yarn run lint && yarn run test:docker",
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags",
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags",
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags"
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
},
"release": {
"publish": [
"@semantic-release/github"
]
},
"author": "Oleg Koval",
"license": "ISC",
Expand All @@ -29,13 +40,14 @@
"qs": "^6.5.2"
},
"devDependencies": {
"bithound": "^1.7.0",
"cz-conventional-changelog": "^2.1.0",
"danger": "^3.9.0",
"eslint": "^4.18.2",
"eslint-config-sexy": "^3.2.1",
"generate-changelog": "^1.7.1",
"mocha": "^5.0.4",
"semantic-release": "^15.9.14",
"should": "^13.2.3",
"supertest": "^3.0.0"
"supertest": "^3.0.0",
"travis-deploy-once": "^5.0.7"
}
}
Loading

0 comments on commit 816b629

Please sign in to comment.