diff --git a/.travis.yml b/.travis.yml index 20246056..e3ab4360 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ cache: - node_modules notifications: email: false +before_deploy: + - ./bin/semantic-release pre deploy: provider: npm email: stephan@boennemann.me diff --git a/README.md b/README.md index a7b7cc36..a5393d76 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,16 @@ 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: +Run `semantic-release pre` right before `npm publish` and `semantic-release post` right after. + +The post hook is automatable in `package.json` with a "postpublish" script: ```json "scripts": { - "prepublish": "semantic-release pre", "postpublish": "semantic-release post" } ``` +This is currently not possible for the "prepublish" hook. See [npm/npm#7118](https://github.com/npm/npm/issues/7118). + MIT License 2015 Stephan Bönnemann diff --git a/package.json b/package.json index 12546bc3..820b91fd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "semantic-release", "description": "semantic semver compliant package publishing", - "version": "0.0.0", "author": "Stephan Bönnemann ", "bin": "./bin/semantic-release", "bugs": { @@ -35,7 +34,6 @@ }, "scripts": { "postpublish": "./bin/semantic-release post", - "prepublish": "./bin/semantic-release pre", "test": "standard" } }