Skip to content

Commit ed10da1

Browse files
committed
use semantic-release-cli for publishing
1 parent 503f8f2 commit ed10da1

File tree

2 files changed

+29
-8
lines changed

2 files changed

+29
-8
lines changed

.travis.yml

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

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "core-coderoad",
3-
"version": "1.0.0",
43
"description": "Interactive tutorial platform",
54
"keywords": [
65
"coderoad",
@@ -22,11 +21,15 @@
2221
"*.md"
2322
],
2423
"main": "./lib/index.js",
25-
"repository": "https://github.com/coderoad/core-coderoad",
24+
"repository": {
25+
"type": "git",
26+
"url": "https://github.com/coderoad/core-coderoad.git"
27+
},
2628
"scripts": {
2729
"compile": "tsc",
2830
"test": "jest",
29-
"mocks": "tsc -p ./src/__mocks__"
31+
"mocks": "tsc -p ./src/__mocks__",
32+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
3033
},
3134
"dependencies": {
3235
"atom-plugin-command-line": "1.0.2",
@@ -58,7 +61,8 @@
5861
"spectron": "^3.4.0",
5962
"tslint": "^3.15.1",
6063
"tslint-react": "^1.1.0",
61-
"typescript": "^2.0.3"
64+
"typescript": "^2.0.3",
65+
"semantic-release": "^4.3.5"
6266
},
6367
"jest": {
6468
"verbose": true,

0 commit comments

Comments
 (0)