Commit 3b48bb40 authored by JJ Kasper's avatar JJ Kasper

Update beta tag (#84725)

Ensures we use correct tag for beta publish same as rc publish.
parent 80b42729
......@@ -13,6 +13,7 @@ const cwd = process.cwd()
;(async function () {
let isCanary = true
let isReleaseCandidate = false
let isBeta = false
try {
const tagOutput = execSync(
......@@ -24,6 +25,7 @@ const cwd = process.cwd()
isCanary = tagOutput.includes('-canary')
}
isReleaseCandidate = tagOutput.includes('-rc')
isBeta = tagOutput.includes('-beta')
} catch (err) {
console.log(err)
......@@ -34,10 +36,16 @@ const cwd = process.cwd()
throw err
}
let tag = isCanary ? 'canary' : isReleaseCandidate ? 'rc' : 'latest'
let tag = isCanary
? 'canary'
: isReleaseCandidate
? 'rc'
: isBeta
? 'beta'
: 'latest'
try {
if (!isCanary && !isReleaseCandidate) {
if (!isCanary && !isReleaseCandidate && !isBeta) {
const version = JSON.parse(
await fs.promises.readFile(path.join(cwd, 'lerna.json'), 'utf-8')
).version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment