Files
test-repo/scripts/release/steps/push-to-git.js
T

19 lines
450 B
JavaScript

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