From 225c1b515ac33fc9cf873b1d20df935eb445a1a0 Mon Sep 17 00:00:00 2001 From: Ayo Date: Thu, 2 Apr 2026 17:50:59 +0200 Subject: [PATCH] chore: update release script --- scripts/release.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/release.ts b/scripts/release.ts index 67f1b31..8e8baf1 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -1,13 +1,17 @@ -// from https://github.com/elk-zone/elk/blob/main/scripts/release.ts +// @ts-check +// forked from https://github.com/elk-zone/elk/blob/main/scripts/release.ts import Git from 'simple-git' + const git = Git() +const upstream = 'gh' const hash = await git.revparse(['main']) console.log('Checkout release branch') -await git.checkout('release') +await git.fetch('gh') +await git.checkout(`${upstream}/release`, {l}) console.log(`Reset to main branch (${hash})`) await git.reset(['--hard', hash])