Files
test-repo/scripts/release/steps/push-to-git.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

19 lines
447 B
JavaScript

"use strict";
const { runGit, logPromise } = require("../utils");
async function pushGit({ version }) {
await runGit(["commit", "-am", `Release ${version}`]);
await runGit(["tag", "-a", version, "-m", `Release ${version}`]);
await runGit(["push"]);
await runGit(["push", "--tags"]);
}
module.exports = function (params) {
if (params.dry) {
return;
}
return logPromise("Committing and pushing to remote", pushGit(params));
};