workflow: update lockfile during release
This commit is contained in:
		
							parent
							
								
									fafa7a1087
								
							
						
					
					
						commit
						7a5c784452
					
				@ -101,8 +101,13 @@ async function main() {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // generate changelog
 | 
			
		||||
  step('\nGenerating changelog...')
 | 
			
		||||
  await run(`pnpm`, ['run', 'changelog'])
 | 
			
		||||
 | 
			
		||||
  // update pnpm-lock.yaml
 | 
			
		||||
  step('\nUpdating lockfile...')
 | 
			
		||||
  await run(`pnpm`, ['install', '--prefer-offline'])
 | 
			
		||||
 | 
			
		||||
  const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
 | 
			
		||||
  if (stdout) {
 | 
			
		||||
    step('\nCommitting changes...')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user