chore: update release script
This commit is contained in:
parent
c9f599f878
commit
225c1b515a
1 changed files with 6 additions and 2 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue