Skip to content

Commit 87f8831

Browse files
author
David Brockman Smoliansky
committed
fix(ci): use semantic-release
1 parent 625ffd9 commit 87f8831

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
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"
88
},
99
"dependencies": {
1010
"requireindex": "~1.1.0"
1111
},
1212
"devDependencies": {
1313
"eslint": "^2.4.0",
14-
"mocha": "^2.4.5"
14+
"mocha": "^2.4.5",
15+
"semantic-release": "^4.3.5"
1516
},
1617
"engines": {
1718
"node": ">=4"
@@ -25,7 +26,7 @@
2526
"author": "Springworks",
2627
"repository": {
2728
"type": "git",
28-
"url": "git+https://github.com/Springworks/eslint-plugin-springworks.git"
29+
"url": "https://github.com/Springworks/eslint-plugin-springworks.git"
2930
},
3031
"bugs": {
3132
"url": "https://github.com/Springworks/eslint-plugin-springworks/issues"

0 commit comments

Comments
 (0)