Unverified Commit 9f38cfee authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update to only use preminor when configured (#62904)

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
parent d953de62
...@@ -55,7 +55,9 @@ async function main() { ...@@ -55,7 +55,9 @@ async function main() {
console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`) console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`)
const child = execa( const child = execa(
isCanary 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`, : `pnpm lerna version ${semverType} --force-publish -y`,
{ {
stdio: 'pipe', stdio: 'pipe',
......
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