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

9 lines
321 B
JavaScript

import { runGit } from "../utils.js";
export default async function pushToGit({ version, repo }) {
await runGit(["commit", "-am", `Release ${version}`]);
await runGit(["tag", "-a", version, "-m", `Release ${version}`]);
await runGit(["push", "--repo", repo]);
await runGit(["push", "--tags", "--repo", repo]);
}