Skip to content

Commit bbd6e7f

Browse files
committed
chore: set up semantic-release
1 parent 7f3a8b6 commit bbd6e7f

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
5+
notifications:
6+
email: false
7+
node_js:
8+
- '7'
9+
- '6'
10+
- '4'
11+
before_script:
12+
- npm prune
13+
after_success:
14+
- npm run semantic-release
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "an-array-of-english-words",
3-
"version": "1.2.0",
3+
"version": "0.0.0-development",
44
"description": "An array of ~275,000 English words. Works in node and browsers.",
55
"main": "words.json",
66
"bin": {
@@ -12,15 +12,17 @@
1212
"license": "MIT",
1313
"scripts": {
1414
"build": "node build.js > words.json",
15-
"test": "npm run build && mocha && standard --fix && standard-markdown"
15+
"test": "npm run build && mocha && standard --fix && standard-markdown",
16+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1617
},
1718
"devDependencies": {
1819
"chai": "^3.5.0",
1920
"lodash": "^4.17.2",
2021
"mocha": "^3.5.0",
2122
"readlines": "^0.2.0",
2223
"standard": "^10.0.3",
23-
"standard-markdown": "^4.0.2"
24+
"standard-markdown": "^4.0.2",
25+
"semantic-release": "^7.0.2"
2426
},
2527
"engines": {
2628
"node": ">=4"

0 commit comments

Comments
 (0)