Skip to content

Commit

Permalink
chore: semantic versioning/release
Browse files Browse the repository at this point in the history
  • Loading branch information
lxhunter committed May 8, 2018
1 parent 028a8fe commit b9bc1fc
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
version: 2
jobs:

build:
machine:
enabled: true

working_directory: ~/ansible-lint-rules

release:
docker:
- image: circleci/node:8

steps:
- checkout:
path: ~/ansible-lint-rules

- 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
32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 b9bc1fc

Please sign in to comment.