Unverified Commit cd293963 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update beta tag (#84725)

Ensures we use correct tag for beta publish same as rc publish.
parent f09567ea
...@@ -13,6 +13,7 @@ const cwd = process.cwd() ...@@ -13,6 +13,7 @@ const cwd = process.cwd()
;(async function () { ;(async function () {
let isCanary = true let isCanary = true
let isReleaseCandidate = false let isReleaseCandidate = false
let isBeta = false
try { try {
const tagOutput = execSync( const tagOutput = execSync(
...@@ -24,6 +25,7 @@ const cwd = process.cwd() ...@@ -24,6 +25,7 @@ const cwd = process.cwd()
isCanary = tagOutput.includes('-canary') isCanary = tagOutput.includes('-canary')
} }
isReleaseCandidate = tagOutput.includes('-rc') isReleaseCandidate = tagOutput.includes('-rc')
isBeta = tagOutput.includes('-beta')
} catch (err) { } catch (err) {
console.log(err) console.log(err)
...@@ -34,10 +36,16 @@ const cwd = process.cwd() ...@@ -34,10 +36,16 @@ const cwd = process.cwd()
throw err throw err
} }
let tag = isCanary ? 'canary' : isReleaseCandidate ? 'rc' : 'latest' let tag = isCanary
? 'canary'
: isReleaseCandidate
? 'rc'
: isBeta
? 'beta'
: 'latest'
try { try {
if (!isCanary && !isReleaseCandidate) { if (!isCanary && !isReleaseCandidate && !isBeta) {
const version = JSON.parse( const version = JSON.parse(
await fs.promises.readFile(path.join(cwd, 'lerna.json'), 'utf-8') await fs.promises.readFile(path.join(cwd, 'lerna.json'), 'utf-8')
).version ).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