diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..eb03e3e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +*.log diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..999e215d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,17 @@ +language: node_js +node_js: +- '0.10' +sudo: false +cache: + directories: + - node_modules +notifications: + emails: false +deploy: + provider: npm + email: stephan@boennemann.me + api_key: + secure: Lq1FZweaNr/Ah8M7h3oWQ59HTswzvcksTUfzWb/dpqNn5FECN9I+4gi79EQPD62ZbJDCuDHY0EEEDLdnaB1z8N7kOj1RtmvC1k0teTEXFsGBPS4evXakRj+AfoBAGsTaXHqBYBOvYBxJT2Md/UoOgPSQjtAdZSNsmoFb1xkngQ0= + on: + branch: master + repo: boennemann/semantic-release diff --git a/README.md b/README.md new file mode 100644 index 00000000..a7b7cc36 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# semantic-release +[![Build Status](https://travis-ci.org/boennemann/semantic-release.svg)](https://travis-ci.org/boennemann/semantic-release) +[![Dependency Status](https://david-dm.org/boennemann/semantic-release.svg)](https://david-dm.org/boennemann/semantic-release) +[![devDependency Status](https://david-dm.org/boennemann/semantic-release/dev-status.svg)](https://david-dm.org/boennemann/semantic-release#info=devDependencies) + +[![NPM](https://nodei.co/npm/semantic-release.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/semantic-release/) + +```bash +npm i semantic-release +``` + +`semantic-release` provides "prepublish" and "postpublish" hooks so you automatically release the correct version. + +Add this to your `package.json` for maximum comfort: +```json +"scripts": { + "prepublish": "semantic-release pre", + "postpublish": "semantic-release post" +} +``` + +MIT License +2015 Stephan Bönnemann diff --git a/package.json b/package.json new file mode 100644 index 00000000..db646e5a --- /dev/null +++ b/package.json @@ -0,0 +1,40 @@ +{ + "name": "semantic-release", + "description": "semantic semver compliant package publishing", + "author": "Stephan Bönnemann ", + "bin": "./bin/semantic-release", + "bugs": { + "url": "https://github.com/boennemann/semantic-release/issues" + }, + "dependencies": { + "conventional-changelog": "0.0.11", + "github": "^0.2.3", + "minimist": "^1.1.0", + "parse-github-repo-url": "^1.0.0", + "semver": "^4.2.0" + }, + "devDependencies": { + "standard": "^2.3.1" + }, + "homepage": "https://github.com/boennemann/semantic-release", + "keywords": [ + "release", + "publish", + "module", + "package", + "semver", + "version", + "changelog" + ], + "license": "MIT", + "main": "index.js", + "repository": { + "type": "git", + "url": "https://github.com/boennemann/semantic-release.git" + }, + "scripts": { + "prepublish": "semantic-release pre", + "postpublish": "semantic-release post", + "test": "standard" + } +}