diff --git a/.travis.yml b/.travis.yml index ce6783d..ae4544f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,16 +9,15 @@ node_js: before_install: - npm install -g npm@5 - npm install -g greenkeeper-lockfile@1 -before_script: greenkeeper-lockfile-update -after_script: greenkeeper-lockfile-upload -script: - - npm run lint - - npm run test - - npm run build -after_success: - - npm run travis-deploy-once "npm run semantic-release" - - npm run codecov - - if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run deploy-storybook-ci; fi -branches: - except: - - /^v\d+\.\d+\.\d+$/ +jobs: + include: + - stage: test + script: + - npm run lint + - npm run test + - npm run build + before_script: greenkeeper-lockfile-update + after_script: greenkeeper-lockfile-upload + - stage: deploy + if: branch = master + script: npm run travis-deploy-once "npm run semantic-release" diff --git a/README.md b/README.md index 79c2598..2c5ea10 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # example-rollup-react-component-npm-package +[![Build Status](https://travis-ci.org/jaebradley/example-rollup-react-component-npm-package.svg?branch=master)](https://travis-ci.org/jaebradley/example-rollup-react-component-npm-package) +[![npm](https://img.shields.io/npm/dt/@jaebradley/example-rollup-react-component-npm-package.svg)](https://www.npmjs.com/package/@jaebradley/example-rollup-react-component-npm-package) +[![npm](https://img.shields.io/npm/v/@jaebradley/example-rollup-react-component-npm-package.svg)](https://www.npmjs.com/package/@jaebradley/example-rollup-react-component-npm-package) + Example `React` component "library" using [`rollup`](https://github.com/rollup/rollup) that is published to `npm`. ## `rollup` and `webpack` diff --git a/package.json b/package.json index 1d0f294..c9461ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@jaebradley/example-rollup-react-component-npm-package", "version": "0.0.0-development", - "description": "Example React Component for npm Publication", + "description": "Example React Component for npm Publication using Rollup", "main": "./build/index.js", "module": "./build/index.es.js", "files": [