Skip to content

Commit

Permalink
ci(npm): set up automatic releases
Browse files Browse the repository at this point in the history
use semantic-release to generate a changelog and release to npm via travis
  • Loading branch information
Vince Speelman committed Feb 10, 2018
1 parent 0ae138c commit bab2fc9
Show file tree
Hide file tree
Showing 4 changed files with 3,114 additions and 328 deletions.
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
node_js:
- "9"
- node

script: echo "Running tests against $(node -v)..."

- '9'
jobs:
include:
- stage: Produce Coverage
node_js: node
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- stage: Produce Coverage
node_js: node
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
after_success:
- npm run travis-deploy-once "npm run semantic-release"
branches:
except:
- /^v\d+\.\d+\.\d+$/
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<a name="1.0.1"></a>
## <small>1.0.1 (2018-02-09)</small>

* v1.0.1 ([0ae138c](https://github.com/tedconf/react-show-more/commit/0ae138c))
* docs(readme): add a gif ([3963700](https://github.com/tedconf/react-show-more/commit/3963700))



<a name="1.0.0"></a>
## 1.0.0 (2018-02-09)

* v1.0.0 ([e26ec08](https://github.com/tedconf/react-show-more/commit/e26ec08))
* docs(readme): update badges ([e16ffaf](https://github.com/tedconf/react-show-more/commit/e16ffaf))
* build(ci): add coveralls to travis ([a451687](https://github.com/tedconf/react-show-more/commit/a451687))
* build(ci): configure travis ([b1322d5](https://github.com/tedconf/react-show-more/commit/b1322d5))
* build(ci): remove jest-junit ([4caa39c](https://github.com/tedconf/react-show-more/commit/4caa39c))



<a name="0.5.4"></a>
## <small>0.5.4 (2018-02-09)</small>

* v0.5.4 ([0f4847f](https://github.com/tedconf/react-show-more/commit/0f4847f))
* docs(readme): add props and child fn ([fffc4cc](https://github.com/tedconf/react-show-more/commit/fffc4cc))



<a name="0.5.3"></a>
## <small>0.5.3 (2018-02-08)</small>

* v0.5.3 ([3a655bc](https://github.com/tedconf/react-show-more/commit/3a655bc))
* feat(package): publish under @tedconf namespace ([8d8c78e](https://github.com/tedconf/react-show-more/commit/8d8c78e))



<a name="0.5.2"></a>
## <small>0.5.2 (2018-02-07)</small>

* v0.5.2 ([91f071c](https://github.com/tedconf/react-show-more/commit/91f071c))
* fix: revert name until npm fixes me ([b0036e5](https://github.com/tedconf/react-show-more/commit/b0036e5))
* fix(onEnd): return null to onMore if we're at the last item ([a5b5666](https://github.com/tedconf/react-show-more/commit/a5b5666))



<a name="0.5.1"></a>
## <small>0.5.1 (2018-02-07)</small>

* v0.5.1 ([6de213f](https://github.com/tedconf/react-show-more/commit/6de213f))
* fix(npm): add public access ([624eb0a](https://github.com/tedconf/react-show-more/commit/624eb0a))
* fix(onMore): handle odd `current` / `by` combinations ([00e2451](https://github.com/tedconf/react-show-more/commit/00e2451))
* chore(npm): add `browser` field ([989e44a](https://github.com/tedconf/react-show-more/commit/989e44a))



<a name="0.3.0"></a>
## 0.3.0 (2018-02-07)

* v0.3.0 ([d76dae4](https://github.com/tedconf/react-show-more/commit/d76dae4))
* feat(npm): post under ted namespace ([95f7399](https://github.com/tedconf/react-show-more/commit/95f7399))



<a name="0.2.0"></a>
## 0.2.0 (2018-02-07)

* v0.2.0 ([77b8685](https://github.com/tedconf/react-show-more/commit/77b8685))
* build(npm): build before publish ([303e281](https://github.com/tedconf/react-show-more/commit/303e281))
* build(npm): publish compiled files ([c453d89](https://github.com/tedconf/react-show-more/commit/c453d89))
* build(rollup): configure babel to handle modules in test, but not build ([20e2f61](https://github.com/tedconf/react-show-more/commit/20e2f61))
* fix: change name ([0c5b3a1](https://github.com/tedconf/react-show-more/commit/0c5b3a1))
* docs: add readme with basic usage ([31183c0](https://github.com/tedconf/react-show-more/commit/31183c0))
* feat: initialize component ([0d8bda9](https://github.com/tedconf/react-show-more/commit/0d8bda9))



27 changes: 24 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
"test": "yarn test:fast --ci --colors --silent --coverage",
"test:fast": "jest --colors",
"test:watch": "jest --watch",
"cz": "git-cz"
"cz": "git-cz",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/tedconf/react-show-more.git"
"url": "https://github.com/tedconf/react-show-more.git"
},
"files": [
"dist"
Expand All @@ -42,6 +44,9 @@
"react": ">=15"
},
"devDependencies": {
"@semantic-release/changelog": "1.0.0",
"@semantic-release/git": "3.0.0",
"@semantic-release/npm": "3.0.1",
"babel-jest": "22.1.0",
"babel-plugin-external-helpers": "6.22.0",
"babel-preset-env": "1.6.1",
Expand All @@ -50,6 +55,7 @@
"babel-preset-stage-0": "6.24.1",
"bili": "2.2.6",
"commitizen": "2.9.6",
"conventional-changelog-cli": "1.3.9",
"coveralls": "3.0.0",
"cz-emoji": "1.1.0",
"enzyme": "3.3.0",
Expand All @@ -58,7 +64,10 @@
"jest": "22.1.4",
"raf": "3.4.0",
"react": "16.2.0",
"react-dom": "16.2.0"
"react-dom": "16.2.0",
"semantic-release": "^12.4.1",
"semantic-release-cli": "3.6.2",
"travis-deploy-once": "^4.3.4"
},
"jest": {
"moduleFileExtensions": [
Expand All @@ -81,5 +90,17 @@
"roots": [
"<rootDir>/src"
]
},
"release": {
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"publish": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
]
}
}
Loading

0 comments on commit bab2fc9

Please sign in to comment.