Skip to content

Commit 21f6e81

Browse files
author
Mathias Fernström
committed
Merge pull request #7 from Springworks/setup-semantic-release
Setup semantic release
2 parents 625ffd9 + 7091981 commit 21f6e81

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.travis.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1+
sudo: false
12
language: node_js
23
node_js:
3-
- 4
4-
script:
5-
- npm test
6-
sudo: false
4+
- '4'
5+
- '6'
6+
cache:
7+
directories:
8+
- node_modules
79
notifications:
810
email: false
11+
before_script:
12+
- npm prune
13+
after_success:
14+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
15+
- python travis_after_all.py
16+
- export $(cat .to_export_back) &> /dev/null
17+
- npm run semantic-release
18+
branches:
19+
except:
20+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
{
22
"name": "eslint-plugin-springworks",
3-
"version": "2.0.0",
43
"description": "Collection of ESLint rules",
54
"main": "lib/index.js",
65
"scripts": {
7-
"test": "mocha --recursive --reporter dot tests"
6+
"test": "mocha --recursive --reporter dot tests",
7+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
8+
"commit": "commit-wizard"
89
},
910
"dependencies": {
1011
"requireindex": "~1.1.0"
1112
},
1213
"devDependencies": {
1314
"eslint": "^2.4.0",
14-
"mocha": "^2.4.5"
15+
"mocha": "^2.4.5",
16+
"pre-git": "3.8.3",
17+
"semantic-release": "^4.3.5"
18+
},
19+
"config": {
20+
"pre-git": {
21+
"commit-msg": "conventional"
22+
}
1523
},
1624
"engines": {
1725
"node": ">=4"
@@ -25,7 +33,7 @@
2533
"author": "Springworks",
2634
"repository": {
2735
"type": "git",
28-
"url": "git+https://github.com/Springworks/eslint-plugin-springworks.git"
36+
"url": "https://github.com/Springworks/eslint-plugin-springworks.git"
2937
},
3038
"bugs": {
3139
"url": "https://github.com/Springworks/eslint-plugin-springworks/issues"

0 commit comments

Comments
 (0)