chore: add semantic-release
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -31,3 +31,9 @@ jobs: | ||||
|         with: | ||||
|           branch: 'gh-pages' | ||||
|           folder: 'example/dist' | ||||
|  | ||||
|       - name: 'Release' | ||||
|         run: 'npm run release' | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|           NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||||
|   | ||||
							
								
								
									
										19
									
								
								.releaserc.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.releaserc.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| { | ||||
|   "branches": ["master"], | ||||
|   "plugins": [ | ||||
|     [ | ||||
|       "@semantic-release/commit-analyzer", | ||||
|       { | ||||
|         "preset": "conventionalcommits" | ||||
|       } | ||||
|     ], | ||||
|     [ | ||||
|       "@semantic-release/release-notes-generator", | ||||
|       { | ||||
|         "preset": "conventionalcommits" | ||||
|       } | ||||
|     ], | ||||
|     "@semantic-release/npm", | ||||
|     "@semantic-release/github" | ||||
|   ] | ||||
| } | ||||
| @@ -14,6 +14,7 @@ | ||||
|   <a href="https://github.com/Divlo/react-component-form/actions/workflows/test.yml"><img src="https://github.com/Divlo/react-component-form/actions/workflows/test.yml/badge.svg?branch=master" /></a> | ||||
|   <br /> | ||||
|   <a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg" alt="Conventional Commits" /></a> | ||||
|   <a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg" alt="semantic-release" /></a> | ||||
|   <a href="https://www.npmjs.com/package/react-component-form"><img src="https://img.shields.io/npm/v/react-component-form.svg" alt="npm version"></a> | ||||
| </p> | ||||
|  | ||||
|   | ||||
							
								
								
									
										8613
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8613
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "react-component-form", | ||||
|   "version": "1.3.0", | ||||
|   "version": "0.0.0-development", | ||||
|   "description": "Manage React Forms with ease.", | ||||
|   "author": "Divlo <contact@divlo.fr>", | ||||
|   "license": "MIT", | ||||
| @@ -32,7 +32,8 @@ | ||||
|     "lint:commit": "commitlint", | ||||
|     "lint:editorconfig": "editorconfig-checker", | ||||
|     "lint:markdown": "markdownlint '**/*.md' --dot --ignore node_modules", | ||||
|     "lint:typescript": "tsdx lint" | ||||
|     "lint:typescript": "tsdx lint", | ||||
|     "release": "semantic-release" | ||||
|   }, | ||||
|   "peerDependencies": { | ||||
|     "react": ">=16" | ||||
| @@ -47,6 +48,7 @@ | ||||
|     "markdownlint-cli": "0.27.1", | ||||
|     "react": "17.0.2", | ||||
|     "react-dom": "17.0.2", | ||||
|     "semantic-release": "17.4.4", | ||||
|     "tsdx": "0.14.1", | ||||
|     "typescript": "4.3.3" | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user