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) {
|
async function createRelease (branchToTarget, isBeta) {
|
||||||
|
console.log('creating release for', branchToTarget, `isBeta=${isBeta}`)
|
||||||
let releaseNotes = await getReleaseNotes(branchToTarget)
|
let releaseNotes = await getReleaseNotes(branchToTarget)
|
||||||
let newVersion = await getNewVersion()
|
let newVersion = await getNewVersion()
|
||||||
await tagRelease(newVersion)
|
await tagRelease(newVersion)
|
||||||
|
@ -180,6 +181,7 @@ async function createRelease (branchToTarget, isBeta) {
|
||||||
}
|
}
|
||||||
githubOpts.tag_name = newVersion
|
githubOpts.tag_name = newVersion
|
||||||
githubOpts.target_commitish = branchToTarget
|
githubOpts.target_commitish = branchToTarget
|
||||||
|
console.log('creating release with github opts', githubOpts)
|
||||||
await github.repos.createRelease(githubOpts)
|
await github.repos.createRelease(githubOpts)
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.log(`${fail} Error creating new release: `, err)
|
console.log(`${fail} Error creating new release: `, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue