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 | ||||
| notifications: | ||||
|   email: false | ||||
| before_deploy: | ||||
|   - ./bin/semantic-release pre | ||||
| deploy: | ||||
|   provider: npm | ||||
|   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. | ||||
| 
 | ||||
| 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 | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| { | ||||
|   "name": "semantic-release", | ||||
|   "description": "semantic semver compliant package publishing", | ||||
|   "version": "0.0.0", | ||||
|   "author": "Stephan Bönnemann <stephan@boennemann.me>", | ||||
|   "bin": "./bin/semantic-release", | ||||
|   "bugs": { | ||||
| @ -35,7 +34,6 @@ | ||||
|   }, | ||||
|   "scripts": { | ||||
|     "postpublish": "./bin/semantic-release post", | ||||
|     "prepublish": "./bin/semantic-release pre", | ||||
|     "test": "standard" | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user