chore: remove prepublish script and migrate to travis hook
This commit is contained in:
parent
7d21697d78
commit
7fa0754ff2
@ -7,6 +7,8 @@ cache:
|
|||||||
- node_modules
|
- node_modules
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
before_deploy:
|
||||||
|
- ./bin/semantic-release pre
|
||||||
deploy:
|
deploy:
|
||||||
provider: npm
|
provider: npm
|
||||||
email: stephan@boennemann.me
|
email: stephan@boennemann.me
|
||||||
|
@ -11,13 +11,16 @@ npm i semantic-release
|
|||||||
|
|
||||||
`semantic-release` provides "prepublish" and "postpublish" hooks so you automatically release the correct version.
|
`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
|
```json
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "semantic-release pre",
|
|
||||||
"postpublish": "semantic-release post"
|
"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
|
MIT License
|
||||||
2015 Stephan Bönnemann
|
2015 Stephan Bönnemann
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "semantic-release",
|
"name": "semantic-release",
|
||||||
"description": "semantic semver compliant package publishing",
|
"description": "semantic semver compliant package publishing",
|
||||||
"version": "0.0.0",
|
|
||||||
"author": "Stephan Bönnemann <stephan@boennemann.me>",
|
"author": "Stephan Bönnemann <stephan@boennemann.me>",
|
||||||
"bin": "./bin/semantic-release",
|
"bin": "./bin/semantic-release",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
@ -35,7 +34,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postpublish": "./bin/semantic-release post",
|
"postpublish": "./bin/semantic-release post",
|
||||||
"prepublish": "./bin/semantic-release pre",
|
|
||||||
"test": "standard"
|
"test": "standard"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user