forked from GitHubMirrors/silverbullet-icalendar
switch to ical.js and cleanup obsolete files - v0.4.6 [skip-ci]
All checks were successful
Build SilverBullet Plug / build (push) Successful in 11s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 11s
This commit is contained in:
19
scripts/bump-version.ts
Normal file
19
scripts/bump-version.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// scripts/bump-version.ts
|
||||
const denoConfigPath = "deno.json";
|
||||
const denoConfig = JSON.parse(await Deno.readTextFile(denoConfigPath));
|
||||
const currentVersion = denoConfig.version;
|
||||
|
||||
const parts = currentVersion.split(".").map(Number);
|
||||
if (parts.length !== 3 || parts.some(isNaN)) {
|
||||
console.error(`Invalid version format in deno.json: ${currentVersion}`);
|
||||
Deno.exit(1);
|
||||
}
|
||||
|
||||
// Increment patch version
|
||||
parts[2]++;
|
||||
const newVersion = parts.join(".");
|
||||
|
||||
denoConfig.version = newVersion;
|
||||
await Deno.writeTextFile(denoConfigPath, JSON.stringify(denoConfig, null, 2) + "\n");
|
||||
|
||||
console.log(`Bumped version: ${currentVersion} -> ${newVersion}`);
|
||||
Reference in New Issue
Block a user