chore: update release script
This commit is contained in:
parent
7d7bd8b55b
commit
7711ae0ebb
1 changed files with 9 additions and 6 deletions
|
|
@ -15,11 +15,14 @@ console.log('Checkout release branch')
|
||||||
//git checkout -b release --track gh/release
|
//git checkout -b release --track gh/release
|
||||||
await git.checkout(['-b', 'release', '--track', 'gh/release'])
|
await git.checkout(['-b', 'release', '--track', 'gh/release'])
|
||||||
|
|
||||||
// console.log(`Reset to main branch (${hash})`)
|
console.log(`Reset to main branch (${hash})`)
|
||||||
// await git.reset(['--hard', hash])
|
await git.reset(['--hard', hash])
|
||||||
|
|
||||||
// console.log('Push to release branch')
|
console.log('Push to release branch')
|
||||||
// await git.push(['--force'])
|
await git.push(['--force', 'gh'])
|
||||||
|
|
||||||
// console.log('Checkout main branch')
|
console.log('Checkout main branch')
|
||||||
// await git.checkout('main')
|
await git.checkout('main')
|
||||||
|
|
||||||
|
console.log('Deleting local release branch')
|
||||||
|
await git.branch(['-D', 'release'])
|
||||||
Loading…
Reference in a new issue