feat: publishing flow for alpha #124
Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 1 commit into
main fromtheo/publish-alphaopened View on GitHub- @@ -0,0 +1,16 @@1+import { readFileSync, writeFileSync } from "node:fs";2+import { fileURLToPath } from "node:url";3+4+const packageJsonPath = fileURLToPath(new URL("../apps/server/package.json", import.meta.url));5+const args = process.argv.slice(2);6+const dryRun = args.includes("--dry-run");7+const versionArg = args.find((arg) => arg !== "--dry-run");8+9+const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));10+const currentVersion = packageJson.version;11+12+const alphaVersionPattern = /^\d+\.\d+\.\d+-alpha\.\d+$/;13+const alphaCounterPattern = /^(?<base>\d+\.\d+\.\d+)-alpha\.(?<counter>\d+)$/;14+15+function nextAlphaVersion(version) {16+ const alphaMatch = version.match(alphaCounterPattern);
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.