From f20b02a90cea851c8b8d050cfc34ec310e3ff8f0 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 30 Nov 2023 12:35:00 +0000 Subject: [PATCH] ci: correctly update the lockfile when generating the Version PR Previously the changeset-version.js script was failing in CI because we were using `pnpm i`, which (in CI) defaults to a frozen lockfile. This then failed, since we were actually trying to update the lockfile with this command. Now we explicitly tell pnpm to only update the lockfile and not worry about actually installing anything. --- .github/changeset-version.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/changeset-version.js b/.github/changeset-version.js index 622fafa8d0b3..a473b85ea9a3 100644 --- a/.github/changeset-version.js +++ b/.github/changeset-version.js @@ -126,7 +126,7 @@ function main() { } // 4. Update the lockfile - console.log(execSync("pnpm install", { encoding: "utf8" })); + console.log(execSync("pnpm install --lockfile-only", { encoding: "utf8" })); } if (require.main === module) main();