workflow: update lockfile during release

This commit is contained in:
Evan You 2021-11-05 10:17:47 +08:00
parent fafa7a1087
commit 7a5c784452

View File

@ -101,8 +101,13 @@ async function main() {
} }
// generate changelog // generate changelog
step('\nGenerating changelog...')
await run(`pnpm`, ['run', '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' }) const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
if (stdout) { if (stdout) {
step('\nCommitting changes...') step('\nCommitting changes...')