@zalify/cli 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -12580,11 +12580,13 @@ async function storefrontCreate(dir2, opts) {
|
|
|
12580
12580
|
const { token, repo } = await post(auth, `/api/storefronts/${storefrontId}/push-token`, {});
|
|
12581
12581
|
const run = (args) => spawnSync3("git", args, { cwd: resolve4(dir2), stdio: "ignore" });
|
|
12582
12582
|
run(["remote", "add", "origin", `https://github.com/${repo}.git`]);
|
|
12583
|
-
const push = spawnSync3("git", ["push",
|
|
12583
|
+
const push = spawnSync3("git", ["push", `https://x-access-token:${token}@github.com/${repo}.git`, "main"], { cwd: resolve4(dir2), stdio: "inherit" });
|
|
12584
12584
|
if (push.status !== 0) {
|
|
12585
12585
|
throw new Error(`git push to ${repo} failed — resolve and push manually.`);
|
|
12586
12586
|
}
|
|
12587
|
-
run(["
|
|
12587
|
+
run(["update-ref", "refs/remotes/origin/main", "HEAD"]);
|
|
12588
|
+
run(["config", "branch.main.remote", "origin"]);
|
|
12589
|
+
run(["config", "branch.main.merge", "refs/heads/main"]);
|
|
12588
12590
|
console.log(` ✓ pushed to github.com/${repo} — Vercel deploys on push`);
|
|
12589
12591
|
}
|
|
12590
12592
|
if (view.domain) {
|