From 7a5c78445284e21cd000faba17409848a0aa231d Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 5 Nov 2021 10:17:47 +0800 Subject: [PATCH] workflow: update lockfile during release --- scripts/release.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/release.js b/scripts/release.js index e8128d2fc4..835cbebe94 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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...') -- 2.47.2