mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	
		
			
	
	
		
			25 lines
		
	
	
		
			509 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			509 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
|   | # Force start from root folder | ||
|  | cd "$(dirname "$0")/.." | ||
|  | 
 | ||
|  | set -e | ||
|  | 
 | ||
|  | version="" | ||
|  | 
 | ||
|  | echo "Please enter the version you want to publish" | ||
|  | read version | ||
|  | 
 | ||
|  | # publish packages | ||
|  | ./node_modules/.bin/lerna publish --no-push --dist-tag beta --exact "$version" | ||
|  | 
 | ||
|  | # push master branch | ||
|  | git push origin master | ||
|  | 
 | ||
|  | # push tag | ||
|  | git push origin v"$version" | ||
|  | 
 | ||
|  | # set latest dist-tag on npm | ||
|  | lerna exec --stream --no-bail --no-private -- npm dist-tag add '${LERNA_PACKAGE_NAME}'@"$version" latest | ||
|  | 
 | ||
|  | # run changelog cli | ||
|  | npx @sclt/program-changelog |