fix: Add helpful detail to ERELEASEBRANCHES error message (#1188)
				
					
				
			This commit is contained in:
		
							parent
							
								
									8576f49e54
								
							
						
					
					
						commit
						37bcc9e515
					
				| @ -81,6 +81,8 @@ The branches on which releases should happen. By default **semantic-release** wi | |||||||
| - prereleases to the `beta` distribution channel from the branch `beta` if it exists | - prereleases to the `beta` distribution channel from the branch `beta` if it exists | ||||||
| - prereleases to the `alpha` distribution channel from the branch `alpha` if it exists | - prereleases to the `alpha` distribution channel from the branch `alpha` if it exists | ||||||
| 
 | 
 | ||||||
|  | **Note**: If your repository does not have a release branch, then **semantic-release** will fail with an `ERELEASEBRANCHES` error message. If you are using the default configuration, you can fix this error by pushing a `master` branch. | ||||||
|  | 
 | ||||||
| **Note**: Once **semantic-release** is configured, any user with the permission to push commits on one of those branches will be able to publish a release. It is recommended to protect those branches, for example with [GitHub protected branches](https://help.github.com/articles/about-protected-branches). | **Note**: Once **semantic-release** is configured, any user with the permission to push commits on one of those branches will be able to publish a release. It is recommended to protect those branches, for example with [GitHub protected branches](https://help.github.com/articles/about-protected-branches). | ||||||
| 
 | 
 | ||||||
| See [Plugins configuration](plugins.md#plugins) for more details. | See [Plugins configuration](plugins.md#plugins) for more details. | ||||||
|  | |||||||
| @ -183,6 +183,8 @@ Your configuration for the problematic branches is \`${stringify(branches)}\`.`, | |||||||
|     details: `A minimum of 1 and a maximum of 3 release branches are required in the [branches configuration](${linkify( |     details: `A minimum of 1 and a maximum of 3 release branches are required in the [branches configuration](${linkify( | ||||||
|       'docs/usage/configuration.md#branches' |       'docs/usage/configuration.md#branches' | ||||||
|     )}). |     )}). | ||||||
|  |      | ||||||
|  | This may occur if your repository does not have a release branch, such as \`master\`.
 | ||||||
| 
 | 
 | ||||||
| Your configuration for the problematic branches is \`${stringify(branches)}\`.`, | Your configuration for the problematic branches is \`${stringify(branches)}\`.`, | ||||||
|   }), |   }), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user