Skip to content

Commit d446e51

Browse files
committed
ci: switch to semantic-release
1 parent 0991e93 commit d446e51

File tree

3 files changed

+1072
-33
lines changed

3 files changed

+1072
-33
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ script:
1010
after_success:
1111
- yarn coveralls
1212
deploy:
13-
local_dir: example
14-
provider: pages
15-
skip_cleanup: true
16-
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
17-
on:
18-
branch: master
13+
- provider: pages
14+
local_dir: example
15+
skip_cleanup: true
16+
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
17+
on:
18+
branch: master
19+
- provider: scripts
20+
skip_cleanup: true
21+
script:
22+
- yarn travis-deploy-once "yarn semantic-release"
1923
notifications:
2024
slack: in2:t4HfbJOtRL7uekgIPh2DUIKb
2125
email: false

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-intersection-observer",
3-
"version": "4.0.2",
3+
"version": "0.0.0-development",
44
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
55
"main": "lib/index.js",
66
"author": "Daniel Schmidt",
@@ -30,7 +30,9 @@
3030
"prepare": "npm run build",
3131
"pretty": "prettier '**/*.{js,md,json}' --write",
3232
"storybook": "start-storybook -p 9000",
33-
"test": "jest"
33+
"test": "jest",
34+
"travis-deploy-once": "travis-deploy-once",
35+
"semantic-release": "semantic-release"
3436
},
3537
"lint-staged": {
3638
"*.{js,json,css,md,ts}": [
@@ -100,6 +102,8 @@
100102
"react": "^16.3.2",
101103
"react-dom": "^16.3.2",
102104
"react-test-renderer": "^16.3.2",
103-
"request": "~2.86.0"
105+
"request": "~2.86.0",
106+
"semantic-release": "^15.4.1",
107+
"travis-deploy-once": "^5.0.0"
104108
}
105109
}

0 commit comments

Comments
 (0)