Skip to content

Commit

Permalink
build(semantic-release): Test with travis, auto package publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Mar 4, 2017
1 parent ab6e8df commit 6eb3616
Show file tree
Hide file tree
Showing 6 changed files with 1,728 additions and 47 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ node_modules

# Transpiled code
/es
/lib
/lib

coverage
.nyc_output
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
sudo: false
language: node_js
cache:
yarn: true
directories:
- node_modules
notifications:
email: true
node_js:
- "7"
script:
- yarn run coverage
- yarn run build
after_success:
- 'curl -Lo travis_after_all.py https://git.io/travis_after_all'
- python travis_after_all.py
- export $(cat .to_export_back) &> /dev/null
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then bash <(curl -s https://codecov.io/bash); fi
- if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run semantic-release; fi
branches:
except:
- /^v\d+\.\d+\.\d+$/
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
## master
## 0.0.0-semantically-released (March 04, 2017)
This package publishing automated by [semantic-release](https://github.com/semantic-release/semantic-release).
[Changelog](https://github.com/nodkz/react-relay-network-layer/releases) is generated automatically and can be found here: https://github.com/nodkz/react-relay-network-layer/releases

## 1.4.0 (February 06, 2017)
- feat(Mutation): Add support to multiple files upload [relay#586](https://github.com/facebook/relay/issues/586). #38 (thanks to @giautm)
- fix(Auth middleware): Only first request that failed during tokenRefresh was retries. #37 (thanks to @alexxv)
- chore(Packages): Update dev packages. Add yarn.
- chore(Packages): Update dev packages. Add yarn.

## 1.3.9 (December 30, 2016)
- Auth middleware: when client makes multiples relay requests with expired token, we only need to refresh token once for those requests. #32 (thanks to @alexxv)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ ReactRelayNetworkLayer
======================
[![](https://img.shields.io/npm/v/react-relay-network-layer.svg)](https://www.npmjs.com/package/react-relay-network-layer)
[![npm](https://img.shields.io/npm/dt/react-relay-network-layer.svg)](https://www.npmjs.com/package/react-relay-network-layer)
[![Travis](https://img.shields.io/travis/nodkz/react-relay-network-layer.svg?maxAge=2592000)](https://travis-ci.org/nodkz/react-relay-network-layer)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

The `ReactRelayNetworkLayer` is a [Relay Network Layer](https://facebook.github.io/relay/docs/guides-network-layer.html)
with query batching and middleware support.
Expand Down
29 changes: 25 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-relay-network-layer",
"version": "1.4.0",
"version": "0.0.0-semantically-released",
"description": "Network Layer for React Relay and Express (Batch Queries, AuthToken, Logging, Retry)",
"files": [
"es",
Expand All @@ -10,7 +10,7 @@
"jsnext:main": "es/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/nodkz/react-relay-network-layer.git"
"url": "https://github.com/nodkz/react-relay-network-layer.git"
},
"keywords": [
"relay",
Expand Down Expand Up @@ -38,20 +38,41 @@
"babel-register": "^6.23.0",
"chai": "^3.5.0",
"chai-as-promised": "^6.0.0",
"cz-conventional-changelog": "^2.0.0",
"eslint": "^3.17.0",
"eslint-config-airbnb-base": "^11.1.1",
"eslint-module-utils": "^2.0.0",
"eslint-plugin-import": "^2.2.0",
"fetch-mock": "^5.9.4",
"mocha": "^3.1.1",
"rimraf": "^2.6.1"
"nyc": "^10.1.2",
"rimraf": "^2.6.1",
"semantic-release": "^6.3.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"nyc": {
"exclude": [
"**/tests/**",
"resources",
"node_modules"
],
"reporter": [
"lcov",
"text"
]
},
"scripts": {
"build": "npm run build-lib && npm run build-es",
"build-lib": "rimraf lib && BABEL_ENV=lib babel src -d lib",
"build-es": "rimraf es && BABEL_ENV=es babel src -d es",
"lint": "eslint src test *.js",
"prepublish": "npm run test && npm run build",
"test": "npm run lint && BABEL_ENV=lib mocha --require test/mocha-bootload --compilers js:babel-register test/*.test.js"
"coverage": "nyc npm run test",
"test": "npm run lint && BABEL_ENV=lib mocha --require test/mocha-bootload --compilers js:babel-register test/*.test.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
}
}
Loading

0 comments on commit 6eb3616

Please sign in to comment.