Skip to content

Commit

Permalink
ci: correctly update the lockfile when generating the Version PR
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
petebacondarwin committed Nov 30, 2023
1 parent ad61fbc commit f20b02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/changeset-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit f20b02a

Please sign in to comment.