Skip to content

Commit 45aceb8

Browse files
committed
Install semantic-release
1 parent 9e6f21d commit 45aceb8

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

.travis.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,22 @@
1+
sudo: false
12
language: node_js
2-
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
38
node_js:
4-
- node
5-
9+
- '4'
10+
before_install:
11+
- npm i -g npm@^2.0.0
612
before_script:
13+
- npm prune
714
- npm install -g codeclimate-test-reporter
8-
915
script: npm run cover:report
10-
1116
after_script:
1217
- codeclimate-test-reporter < coverage.lcov
18+
after_success:
19+
- npm run semantic-release
20+
branches:
21+
except:
22+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "lazy-linked-lists",
3-
"version": "0.1.0",
43
"description": "Lazy and infinite linked lists for JavaScript.",
54
"author": "Steven J. Syrek",
65
"license": "ISC",
@@ -52,7 +51,8 @@
5251
"eslint": "^3.3.1",
5352
"mocha": "^3.0.2",
5453
"nyc": "^8.1.0",
55-
"should": "^11.1.0"
54+
"should": "^11.1.0",
55+
"semantic-release": "^4.3.5"
5656
},
5757
"dependencies": {
5858
"babel-runtime": "^6.11.6"
@@ -64,6 +64,7 @@
6464
"test": "cross-env NODE_ENV=test mocha --compilers js:babel-register",
6565
"cover": "nyc --reporter html --reporter text -- npm -s test",
6666
"cover:report": "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov",
67-
"prepublish": "npm run compile"
67+
"prepublish": "npm run compile",
68+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6869
}
6970
}

0 commit comments

Comments
 (0)