Skip to content

Commit

Permalink
Merge pull request #3 from lxhunter/chore/semantic-versioning
Browse files Browse the repository at this point in the history
Integrating semantic release
  • Loading branch information
lxhunter authored May 8, 2018
2 parents 028a8fe + c32c6c5 commit 94e7a44
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
version: 2
jobs:

build:

docker:
- image: circleci/node:8

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-node-{{ checksum "package.json" }}

- run:
name: "Install node dependencies"
command: |
npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-node-{{ checksum "package.json" }}

- run:
name: "Release role"
command: |
./node_modules/.bin/semantic-release
34 changes: 33 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"license": "MIT",
"author": {
"name": "Alexander Jäger",
"name": "Alexander Jaeger",
"email": "[email protected]"
},
"contributors": [
Expand All @@ -30,7 +30,39 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {},
"release": {
"tagFormat": "${version}",
"verifyConditions": [
"@semantic-release/npm"
],
"publish": [
{
"path": "@semantic-release/github"
},
{
"path": "@semantic-release/npm"
}
],
"analyzeCommits": {
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
}
}
},
"commitlint": {
"extends": [
"./node_modules/@commitlint/config-conventional"
]
},
"devDependencies": {
"@commitlint/cli": "^6.1.2",
"@commitlint/config-conventional": "^6.1.2",
"@semantic-release/exec": "^2.0.1",
"semantic-release": "^13.4.1",
"nodemon": "^1.17.1"
},
"engines": {
Expand Down

0 comments on commit 94e7a44

Please sign in to comment.