Skip to content

Commit

Permalink
chore: tweak release script for publishing from the next branch (#6745)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Oct 27, 2022
1 parent be4c01c commit 2f5a120
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tasks/release/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ let milestone

export default async function release() {
/**
* Make sure that we're on main.
* Make sure that we're on next.
*/
const gitBranchPO = await $`git branch --show-current`

if (gitBranchPO.stdout.trim() !== 'main') {
console.log(fix`Start from main`)
if (gitBranchPO.stdout.trim() !== 'next') {
console.log(fix`Start from next`)
process.exitCode = 1
return
}

console.log(ok`On main`)
console.log(ok`On next`)

/**
* - ask for the desired semver
Expand Down Expand Up @@ -502,7 +502,7 @@ async function cleanUpTasks(semver, nextVersion) {
closeMilestone(milestone.number)
)
}
await confirm(check`Did you merge the release branch into main?`)
await confirm(check`Did you merge the release branch into next?`)
await confirm(check`Did you update yarn.lock?`)
if (semver === 'major' || semver === 'minor') {
await confirmRuns(ask`Ok to version the docs?`, () =>
Expand Down

0 comments on commit 2f5a120

Please sign in to comment.