Files
test-repo/scripts/release/steps/check-git-status.js
T

15 lines
333 B
JavaScript

"use strict";
const { runGit } = require("../utils.js");
module.exports = async function () {
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."
);
}
};