Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pull script typo #8

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scripts/pull-remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
const util = require('node:util');
const exec = util.promisify(require('node:child_process').exec);

(async function () {
const MAIN_BRANCH = 'main'(async function () {
try {
// Get branch name
const { stdout: branchName } = await exec(
'git rev-parse --abbrev-ref HEAD',
);

// Checkout app-router
await exec('git checkout app-router');
// Checkout main
await exec(`git checkout ${MAIN_BRANCH}`);

// Pull origin app-router
await exec('git pull origin app-router');
// Pull origin main
await exec(`git pull origin ${MAIN_BRANCH}`);

// Delete local feature-branch
await exec(`git branch -D ${branchName}`);
Expand Down
Loading