Skip to content

Commit

Permalink
Update to only use preminor when configured (#62904)
Browse files Browse the repository at this point in the history
Ensures we don't use preminor every time only when we manually specify
to

x-ref:
https://github.com/vercel/next.js/actions/runs/8161338410/job/22309868382

Closes NEXT-2716
  • Loading branch information
ijjk committed Mar 5, 2024
1 parent d953de6 commit 9f38cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/start-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ async function main() {
console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`)
const child = execa(
isCanary
? `pnpm lerna version preminor --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url`
? `pnpm lerna version ${
semverType === 'minor' ? 'preminor' : 'prerelease'
} --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url`
: `pnpm lerna version ${semverType} --force-publish -y`,
{
stdio: 'pipe',
Expand Down

0 comments on commit 9f38cfe

Please sign in to comment.