13 lines
325 B
JavaScript
13 lines
325 B
JavaScript
import { runGit } from "../utils.js";
|
|
|
|
export default async function checkGitStatus() {
|
|
const { stdout: status } = await runGit(["status", "--porcelain"]);
|
|
|
|
if (status) {
|
|
throw new Error(
|
|
"Uncommitted local changes. " +
|
|
"Please revert or commit all local changes before making a release.",
|
|
);
|
|
}
|
|
}
|