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])