You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					21 lines
				
				289 B
			
		
		
			
		
	
	
					21 lines
				
				289 B
			| 
								 
											3 years ago
										 
									 | 
							
								echo "Expected arguments: 1) version"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								version=$1
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if [ -z "$version" ]; then
							 | 
						||
| 
								 | 
							
								  echo "version is not set"
							 | 
						||
| 
								 | 
							
								  exit 1
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								npm run react:build
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								npm run react:verify
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								cd ./react
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								generatedNpmVersion="$(npm version $version)"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								npm publish --access public
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								git tag "react-${generatedNpmVersion}"
							 |