Skip to content

Commit

Permalink
ci: fix publish
Browse files Browse the repository at this point in the history
Related #8240
  • Loading branch information
Jolg42 committed Aug 3, 2021
1 parent 7e2cd5e commit 0f6efec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/ci/publish.ts
Expand Up @@ -528,7 +528,7 @@ function getSemverFromPatchBranch(version: string) {
}
}

return null
return undefined
}

async function publish() {
Expand Down Expand Up @@ -1297,7 +1297,9 @@ function getPatchBranch() {

if (process.env.BUILDKITE_BRANCH) {
const versions = getSemverFromPatchBranch(process.env.BUILDKITE_BRANCH)
if (versions?.minor !== null) {
console.debug('versions from patch branch:', versions)

if (versions?.minor) {
return process.env.BUILDKITE_BRANCH
}
}
Expand Down

0 comments on commit 0f6efec

Please sign in to comment.