Skip to content

Commit dfc8e17

Browse files
author
florian
committed
chore: Add semantic-release and travis
1 parent 43ed195 commit dfc8e17

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '4'
10+
before_install:
11+
- npm i -g npm@^2.0.0
12+
before_script:
13+
- npm prune
14+
script:
15+
- npm run test
16+
after_success:
17+
- npm run semantic-release
18+
branches:
19+
except:
20+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "react-card-scroll",
3-
"version": "2.2.3",
3+
"version": "0.0.0-semantically-released",
44
"description": "A React component to navigate horizontally between cards of same width",
55
"main": "lib/index.js",
66
"scripts": {
77
"test": "babel-tape-runner test/**.js",
88
"build": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src",
99
"dev": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src -w",
1010
"example": "node webpack.example.js",
11-
"prepublish": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src"
11+
"prepublish": "BABEL_DISABLE_CACHE=1 NODE_ENV=LIB babel -d lib/ src",
12+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1213
},
1314
"keywords": [
1415
"react-component",
@@ -41,6 +42,7 @@
4142
"react": "^15.0.1",
4243
"react-dom": "^15.0.1",
4344
"sass-loader": "^3.2.0",
45+
"semantic-release": "^4.3.5",
4446
"style-loader": "^0.13.1",
4547
"tape": "^4.5.1",
4648
"webpack": "^1.13.0",

0 commit comments

Comments
 (0)