From d475ef9c03ed4fa92e75200f0c89814f72b259f0 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 17 Apr 2023 22:18:47 +0800 Subject: [PATCH] chore: fix version workflow --- .github/workflows/changesets.yml | 2 +- .scripts/version.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 3bc212564..f5118b028 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -39,7 +39,7 @@ jobs: if: github.event_name == 'push' uses: changesets/action@v1 with: - version: node .scripts/version.js && pnpm i --no-frozen-lockfile && git status + version: node .scripts/version.js setupGitUser: false commit: 'release: version packages' title: 'release: version packages' diff --git a/.scripts/version.js b/.scripts/version.js index 578005ca7..1d0d1897b 100644 --- a/.scripts/version.js +++ b/.scripts/version.js @@ -21,3 +21,9 @@ await execAsync(`pnpm -r version`).catch(catchCmdError); // Sanity check for prepublish scripts await execAsync(`pnpm -r prepack`).catch(catchCmdError); await execAsync(`pnpm -r prepublishOnly`).catch(catchCmdError); + +// Update lockfile +await execAsync(`pnpm i --no-frozen-lockfile`).catch(catchCmdError); + +// Show Git changes +await execAsync(`git status`).catch(catchCmdError);