mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Checkout changelog from release branch into main (#7291)
## About the changes Small detail I'd like to include which is to copy the changelog from the release branch to main. This way we'll only have major, minor and patch logs automatically in main
This commit is contained in:
		
							parent
							
								
									92d7d9aafe
								
							
						
					
					
						commit
						31bbfc974a
					
				
							
								
								
									
										4
									
								
								.github/workflows/publish-new-version.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/publish-new-version.yaml
									
									
									
									
										vendored
									
									
								
							@ -100,13 +100,15 @@ jobs:
 | 
			
		||||
        run: |
 | 
			
		||||
          jq --arg version "${{ github.event.inputs.version }}+main" '.version=$version' package.json > package.json.tmp
 | 
			
		||||
          mv package.json.tmp package.json
 | 
			
		||||
      - name: checkout changelog from ${{ github.ref_name }}
 | 
			
		||||
        run: git checkout origin/${{ github.ref_name }} -- CHANGELOG.md
 | 
			
		||||
      - name: lint
 | 
			
		||||
        run: |
 | 
			
		||||
          yarn install --frozen-lockfile --ignore-scripts
 | 
			
		||||
          yarn lint:fix
 | 
			
		||||
      - name: push changes
 | 
			
		||||
        run: |
 | 
			
		||||
          git add package.json
 | 
			
		||||
          git add package.json CHANGELOG.md
 | 
			
		||||
          git commit -m "chore: bump version to ${{ github.event.inputs.version }}+main"
 | 
			
		||||
          git push origin main
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user