Skip to content

Commit 7a5c784

Browse files
committed
workflow: update lockfile during release
1 parent fafa7a1 commit 7a5c784

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/release.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ async function main() {
101101
}
102102

103103
// generate changelog
104+
step('\nGenerating changelog...')
104105
await run(`pnpm`, ['run', 'changelog'])
105106

107+
// update pnpm-lock.yaml
108+
step('\nUpdating lockfile...')
109+
await run(`pnpm`, ['install', '--prefer-offline'])
110+
106111
const { stdout } = await run('git', ['diff'], { stdio: 'pipe' })
107112
if (stdout) {
108113
step('\nCommitting changes...')

0 commit comments

Comments
 (0)