From 7711ae0ebb347b23bc2ea132bb6d6f8b54000912 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 2 Apr 2026 18:02:02 +0200 Subject: [PATCH] chore: update release script --- scripts/release.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/release.ts b/scripts/release.ts index a9e7577..b1dd04a 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -15,11 +15,14 @@ console.log('Checkout release branch') //git checkout -b release --track gh/release await git.checkout(['-b', 'release', '--track', 'gh/release']) -// console.log(`Reset to main branch (${hash})`) -// await git.reset(['--hard', hash]) +console.log(`Reset to main branch (${hash})`) +await git.reset(['--hard', hash]) -// console.log('Push to release branch') -// await git.push(['--force']) +console.log('Push to release branch') +await git.push(['--force', 'gh']) -// console.log('Checkout main branch') -// await git.checkout('main') +console.log('Checkout main branch') +await git.checkout('main') + +console.log('Deleting local release branch') +await git.branch(['-D', 'release']) \ No newline at end of file