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

15 lines
323 B
JavaScript

"use strict";
const execa = require("execa");
module.exports = async function () {
const status = await execa.stdout("git", ["status", "--porcelain"]);
if (status) {
throw new Error(
"Uncommitted local changes. " +
"Please revert or commit all local changes before making a release."
);
}
};