Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.

Commit c68b247

Browse files
author
Kent C. Dodds
committed
chore(release): Add semantic-release and travis
1 parent ca222f3 commit c68b247

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
branches:
7+
only:
8+
- master
9+
notifications:
10+
email: false
11+
node_js:
12+
- 4
13+
before_install:
14+
- npm i -g npm@^3.0.0
15+
before_script:
16+
- npm prune
17+
script:
18+
- npm t
19+
- npm run build
20+
after_success:
21+
- npm run semantic-release

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "stack-overflow-copy-paste",
3-
"version": "1.0.0",
43
"description": "Utility functions copy/pasted (and modified slightly) from Stack Overflow",
4+
"version": "0.0.0-semantically-released",
55
"main": "dist/index.js",
66
"scripts": {
77
"commit": "git-cz",
88
"prebuild": "npm run lint && npm run clean",
99
"clean": "rimraf dist && mkdir dist",
1010
"build": "babel src/ -d dist/",
1111
"test": "ava --require babel-register",
12-
"lint": "eslint src/"
12+
"lint": "eslint src/",
13+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1314
},
1415
"repository": {
1516
"type": "git",
16-
"url": "git+https://github.com/eggheadio-github/stack-overflow-copy-paste.git"
17+
"url": "https://github.com/eggheadio-github/stack-overflow-copy-paste.git"
1718
},
1819
"keywords": [],
1920
"files": [
@@ -38,7 +39,8 @@
3839
"ghooks": "1.0.3",
3940
"nodemon": "1.8.1",
4041
"rimraf": "2.5.0",
41-
"validate-commit-msg": "1.1.1"
42+
"validate-commit-msg": "1.1.1",
43+
"semantic-release": "4.3.5"
4244
},
4345
"config": {
4446
"ghooks": {

0 commit comments

Comments
 (0)