Skip to content

Commit 30bc4bf

Browse files
authored
Merge pull request #128 from digitalsadhu/add_semantic_release
chore(tooling): Add semantic-release to build process
2 parents e5a306e + 100f5be commit 30bc4bf

File tree

2 files changed

+30
-17
lines changed

2 files changed

+30
-17
lines changed

.travis.yml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1+
sudo: false
12
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
28
node_js:
3-
- "4.2"
4-
- "4.1"
5-
- "4.0"
6-
- "0.12"
7-
- "0.10"
8-
9+
- '6'
10+
- '4'
11+
- '0.12'
12+
- '0.10'
13+
before_install:
14+
- npm i -g npm@^2.0.0
915
before_script:
10-
- "npm i -g jsinspect"
11-
- "npm i -g eslint"
12-
- "npm i -g babel-eslint"
13-
- "npm i -g istanbul"
14-
15-
script:
16-
- "npm test"
16+
- npm prune
17+
- 'npm i -g jsinspect'
18+
- 'npm i -g eslint'
19+
- 'npm i -g babel-eslint'
20+
- 'npm i -g istanbul'
21+
after_success:
22+
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
23+
- python travis_after_all.py
24+
- export $(cat .to_export_back) &> /dev/null
25+
- npm run semantic-release
26+
branches:
27+
except:
28+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "loopback-component-jsonapi",
3-
"version": "0.19.2",
43
"description": "JSONAPI support for loopback",
54
"main": "lib/index.js",
65
"scripts": {
@@ -11,11 +10,12 @@
1110
"lint": "eslint .",
1211
"version:major": "xyz -i major",
1312
"version:minor": "xyz -i minor",
14-
"version:patch": "xyz -i patch"
13+
"version:patch": "xyz -i patch",
14+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "git+https://github.com/digitalsadhu/loopback-component-jsonapi.git"
18+
"url": "https://github.com/digitalsadhu/loopback-component-jsonapi.git"
1919
},
2020
"keywords": [
2121
"loopback",
@@ -50,6 +50,7 @@
5050
"mocha": "^2.3.3",
5151
"rsvp": "3.2.1",
5252
"supertest": "^1.1.0",
53-
"xyz": "^0.5.0"
53+
"xyz": "^0.5.0",
54+
"semantic-release": "^4.3.5"
5455
}
5556
}

0 commit comments

Comments
 (0)