From 9d99b1a19379ab27f796b9deffb3a9c9a0d6ce12 Mon Sep 17 00:00:00 2001 From: Dustin Specker Date: Sat, 16 Apr 2016 20:14:35 -0500 Subject: [PATCH] chore(proj): set up semantic-release --- .travis.yml | 27 ++++++++++++++++++++++----- package.json | 11 ++++++++--- readme.md | 1 + 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23c6820..074b231 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,25 @@ sudo: false language: node_js +cache: + directories: + - node_modules node_js: -- '5' -- '4' -- '0.12' -- '0.10' -after_success: npm run-script coveralls + - '5' + - '4' + - '0.12' + - '0.10' +notifications: + email: false +before_script: + - npm prune +script: + - npm run test +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' + - npm run-script coveralls + - npm run semantic-release +branches: + except: + - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/package.json b/package.json index b5ed2e0..42aa2f1 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,19 @@ { "name": "dscript", - "version": "1.0.0", + "version": "0.0.0-semantic-release", "description": "Framework agnostic hyperscript", "main": "lib/index.js", "scripts": { "compile": "babel src --out-dir lib", "coveralls": "nyc report --reporter=text-lcov | coveralls", "lint": "eslint ./ --ignore-pattern node_modules/ --ignore-pattern lib", + "semantic-release": "semantic-release pre && npm publish && semantic-release post", "test": "npm run lint && npm run compile && nyc ava" }, - "repository": "dustinspecker/dscript", + "repository": { + "type": "git", + "url": "https://github.com/dustinspecker/dscript.git" + }, "keywords": [ "dscript", "hyperscript", @@ -45,7 +49,8 @@ "eslint-path-formatter": "^0.1.1", "eslint-plugin-no-use-extend-native": "^0.3.1", "nyc": "^6.0.0", - "react": "^15.0.0" + "react": "^15.0.0", + "semantic-release": "^4.3.5" }, "ava": { "files": [ diff --git a/readme.md b/readme.md index e756c90..9dc377e 100644 --- a/readme.md +++ b/readme.md @@ -9,6 +9,7 @@ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![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) > Framework agnostic hyperscript