Files
test-repo/scripts/release/steps/check-git-status.js
T
fisker CheungandSosuke Suzuki 916693c066 Update release script (#9418)
* Update release dependencies

* Remove `version` field

* Run install before any require

* Update scripts/release/utils.js

Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>

* Fix update schedule

* Update deps

* Fix

Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-04-21 17:15:12 +03:00

15 lines
330 B
JavaScript

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