Skip to content

Commit

Permalink
chore(scripts/release): log to understand what is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 2, 2024
1 parent 58f44c0 commit 699e7c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,25 @@ const commitAndPR = async (

exec(`git push --force --set-upstream origin ${branch}`);

console.log('BEFORE');
await temporaryWriteTask(pr.body, (bodyFile) => {
console.log('BEGIN');
const commonArgs = ['--title', pr.title, '--body-file', bodyFile];
try {
console.log('editing PR');
const stdout = spawn('gh', ['pr', 'edit', ...commonArgs]);
console.log('edited PR');
console.log(stdout);
} catch (e) {
console.warn(e);
console.log('creating PR');
const stdout = spawn('gh', ['pr', 'create', ...commonArgs]);
console.log('created PR');
console.log(stdout);
}
console.log('END');
});
console.log('AFTER');

exec(`
git switch -
Expand Down

0 comments on commit 699e7c5

Please sign in to comment.