/**
 * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
 */

/**
 * @param {ReleaseOptions} cliArguments
 * @returns {'alpha'|'nightly'|'nightly-next'|'staging'|'internal'}
 */
export default function getCdnVersion( cliArguments ) {
	if ( cliArguments.nightly ) {
		return 'nightly';
	}

	if ( cliArguments.nightlyNext ) {
		return 'nightly-next';
	}

	if ( cliArguments.nightlyAlpha ) {
		return 'alpha';
	}

	if ( cliArguments.internal ) {
		return 'internal';
	}

	return 'staging';
}
