Skip to content

Commit 8f41c17

Browse files
committed
chore: use semantic-release
1 parent 2330360 commit 8f41c17

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ node_js:
44
- 6
55
- 5
66
- 4
7+
before_install:
8+
- npm config set depth 0
9+
- npm install --global npm@latest
710
notifications:
811
email: false
912
sudo: false
13+
script:
14+
- npm run test
15+
- npm run lint
16+
- npm run build
17+
after_success:
18+
- rm -fr ./dist && npm run build && semantic-release pre && npm publish && semantic-release post

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"eslint-config-canonical": "^5.5.0",
2121
"gitdown": "^2.4.0",
2222
"globby": "^4.0.0",
23-
"mocha": "^2.5.3"
23+
"mocha": "^2.5.3",
24+
"semantic-release": "^6.3.2"
2425
},
2526
"keywords": [
2627
"eslint",
@@ -42,7 +43,7 @@
4243
"build": "NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps",
4344
"generate-readme": "gitdown ./.README/README.md --output-file ./README.md && npm run add-assertions",
4445
"lint": "eslint ./src ./test",
45-
"test": "mocha --compilers js:babel-register && npm run lint"
46+
"test": "mocha --compilers js:babel-register"
4647
},
4748
"version": "2.4.0"
4849
}

0 commit comments

Comments
 (0)