chore: update release script

This commit is contained in:
ayo 2026-04-02 17:50:59 +02:00
parent c9f599f878
commit 225c1b515a

View file

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