Files
github-actions-magento2/supported-version/src/nightly/get-next-version.ts
T
Damien Retzinger 14a0e38d64 chore: migrate eslint to flat config
eslint 9 ignores .eslintrc.* by default, so replace .eslintrc.cjs with a
flat eslint.config.mjs (in the style of graycoreio/daffodil)
2026-06-09 17:33:57 -04:00

15 lines
550 B
TypeScript

import { Repository } from "./repository";
/**
* Get the next version of Magento, as determined by the repository.
*/
export const getNextVersion = (repository: Repository, _date: Date) => {
switch(repository){
case "https://nightly.mage-os.org":
case "https://upstream-nightly.mage-os.org":
// See: https://github.com/mage-os/generate-mirror-repo-js/blob/bbbdf1708ea0bf8fc845aad8240d00f37632b4a7/src/release-branch-build-tools.js#L71
return "@alpha";
default:
return "next";
}
}