Files
test-repo/scripts/release/steps/check-git-status.js
T
Georgii Dolzhykov 69b481758c set up cspell (#6684)
* set up cspell

* fix actual misspellings

* add cspell.json to .prettierignore

* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00

15 lines
318 B
JavaScript

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