Skip to content

Commit

Permalink
Allow skip depencies install & set repo
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and medikoo committed Jan 4, 2024
1 parent f0a10c3 commit ab28830
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions scripts/release/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ async function run() {
const { runGit, readJson } = await import("./utils.js");

const params = minimist(process.argv.slice(2), {
string: ["version"],
boolean: ["dry", "manual"],
string: ["version", "repo"],
boolean: ["dry", "manual", "skip-dependencies-install"],
alias: { v: "version" },
default: { manual: false },
default: {
manual: false,
dry: false,
"skip-dependencies-install": false,
repo: "git@github.com:prettier/prettier.git",
},
});

const { stdout: previousVersion } = await runGit([
Expand Down
6 changes: 3 additions & 3 deletions scripts/release/steps/push-to-git.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { runGit, logPromise } from "../utils.js";

async function pushGit({ version }) {
async function pushGit({ version, repo }) {
await runGit(["commit", "-am", `Release ${version}`]);
await runGit(["tag", "-a", version, "-m", `Release ${version}`]);
await runGit(["push"]);
await runGit(["push", "--tags"]);
await runGit(["push", "--repo", repo]);
await runGit(["push", "--tags", "--repo", repo]);
}

export default function pushToGit(params) {
Expand Down

0 comments on commit ab28830

Please sign in to comment.