chore: add logging to prepare-release
This commit is contained in:
parent
6d17663a0b
commit
ff7dfe4a11
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,7 @@ async function getReleaseNotes (currentBranch) {
|
|||
}
|
||||
|
||||
async function createRelease (branchToTarget, isBeta) {
|
||||
console.log('creating release for', branchToTarget, `isBeta=${isBeta}`)
|
||||
let releaseNotes = await getReleaseNotes(branchToTarget)
|
||||
let newVersion = await getNewVersion()
|
||||
await tagRelease(newVersion)
|
||||
|
@ -180,6 +181,7 @@ async function createRelease (branchToTarget, isBeta) {
|
|||
}
|
||||
githubOpts.tag_name = newVersion
|
||||
githubOpts.target_commitish = branchToTarget
|
||||
console.log('creating release with github opts', githubOpts)
|
||||
await github.repos.createRelease(githubOpts)
|
||||
.catch(err => {
|
||||
console.log(`${fail} Error creating new release: `, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue