Skip to content

Commit 6a413ff

Browse files
committed
ci(release): added semantic-release
1 parent dc359cc commit 6a413ff

File tree

3 files changed

+573
-32
lines changed

3 files changed

+573
-32
lines changed

.travis.yml

+7
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ sudo: required
88
after_success:
99
- npm install -g codecov
1010
- codecov
11+
12+
after_success:
13+
- yarn semantic-release
14+
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"test": "eslint ./src; jest --coverage ./src",
1313
"build": "rm -rf lib && mkdir lib && babel src/inapp.js --out-file lib/inapp.js",
1414
"demo": "react-scripts start",
15-
"deploy": "react-scripts build && gh-pages -d build"
15+
"deploy": "react-scripts build && gh-pages -d build",
16+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1617
},
1718
"homepage": "https://f2etw.github.io/detect-inapp",
1819
"files": [
@@ -41,6 +42,7 @@
4142
"react-dom": "15.5.4",
4243
"react-icons": "^2.2.5",
4344
"react-scripts": "1.0.1",
44-
"primer-css": "^6.0.0"
45+
"primer-css": "^6.0.0",
46+
"semantic-release": "^6.3.6"
4547
}
4648
}

0 commit comments

Comments
 (0)