| 
									
										
										
										
											2020-01-16 14:51:55 +01:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-07 17:13:21 +01:00
										 |  |  | # Force start from root folder | 
					
						
							|  |  |  | cd "$(dirname "$0")/.." | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set -e | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | version="" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | echo "Please enter the version you want to publish" | 
					
						
							| 
									
										
										
										
											2020-01-16 14:51:55 +01:00
										 |  |  | read -r version | 
					
						
							| 
									
										
										
										
											2020-01-07 17:13:21 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # publish packages | 
					
						
							| 
									
										
										
										
											2023-12-19 13:21:33 +00:00
										 |  |  | ./node_modules/.bin/nx run-many --target=clean --nx-ignore-cycles | 
					
						
							| 
									
										
										
										
											2024-01-12 12:48:45 +01:00
										 |  |  | ./node_modules/.bin/nx run-many --target=build --nx-ignore-cycles --skip-nx-cache | 
					
						
							| 
									
										
										
										
											2020-06-15 17:10:56 +02:00
										 |  |  | ./node_modules/.bin/lerna publish --no-push --force-publish --dist-tag latest --exact "$version" | 
					
						
							| 
									
										
										
										
											2020-01-07 17:13:21 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-08-08 15:06:02 +02:00
										 |  |  | # push main branch | 
					
						
							| 
									
										
										
										
											2023-09-20 16:44:47 +02:00
										 |  |  | git push origin HEAD | 
					
						
							| 
									
										
										
										
											2020-01-07 17:13:21 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | # push tag | 
					
						
							|  |  |  | git push origin v"$version" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # run changelog cli | 
					
						
							|  |  |  | npx @sclt/program-changelog |