From f5608f0366827212997b27fb4b021984fd07d168 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 16 Jul 2024 11:10:57 -0400 Subject: [PATCH] Don't prompt for experimental releases --- scripts/version.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/version.js b/scripts/version.js index 89c33ce101..7e0f418923 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -69,10 +69,12 @@ async function run() { // We will only bump the router version if this is an experimental let routerVersion = currentRouterVersion; - // 2. Confirm the next version number - let answer = await prompt( - `Are you sure you want to bump version ${currentVersion} to ${version}? [Yn] ` - ); + // 2. Confirm the next version number (skip prompt on experimental CI releases) + let answer = isExperimental + ? true + : await prompt( + `Are you sure you want to bump version ${currentVersion} to ${version}? [Yn] ` + ); if (answer === false) return 0;