mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-14 16:10:59 -07:00
fix(release): Pass args to promoteNightlyVersion (#11666)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -424,7 +424,13 @@ export function getVersion(options = {}) {
|
||||
}
|
||||
break;
|
||||
case 'promote-nightly':
|
||||
versionData = promoteNightlyVersion();
|
||||
versionData = promoteNightlyVersion({ args });
|
||||
// A promoted nightly version is still a nightly, so we should check for conflicts.
|
||||
if (doesVersionExist({ args, version: versionData.releaseVersion })) {
|
||||
throw new Error(
|
||||
`Version conflict! Promoted nightly version ${versionData.releaseVersion} already exists.`,
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 'stable':
|
||||
versionData = getStableVersion(args);
|
||||
|
||||
@@ -142,7 +142,7 @@ export function setupLinters() {
|
||||
|
||||
export function runESLint() {
|
||||
console.log('\nRunning ESLint...');
|
||||
if (!runCommand('npm run lint:ci')) {
|
||||
if (!runCommand('npm run lint')) {
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user