Skip to content

Commit 136f191

Browse files
committed
chore: bump version to 0.0.52
1 parent 09e45ea commit 136f191

6 files changed

Lines changed: 46 additions & 9 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kirapilot-app",
33
"private": true,
4-
"version": "0.0.46",
4+
"version": "0.0.52",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -45,9 +45,9 @@
4545
"type-check": "tsc --noEmit",
4646
"sync-version": "node scripts/sync-version.js",
4747
"build-info": "node scripts/show-build-info.js",
48-
"version:patch": "npm version patch --no-git-tag-version && npm run sync-version && git add . && git commit -m \"chore: bump version to $(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
49-
"version:minor": "npm version minor --no-git-tag-version && npm run sync-version && git add . && git commit -m \"chore: bump version to $(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
50-
"version:major": "npm version major --no-git-tag-version && npm run sync-version && git add . && git commit -m \"chore: bump version to $(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\"",
48+
"version:patch": "npm version patch --no-git-tag-version && npm run sync-version && node scripts/version-commit.js patch",
49+
"version:minor": "npm version minor --no-git-tag-version && npm run sync-version && node scripts/version-commit.js minor",
50+
"version:major": "npm version major --no-git-tag-version && npm run sync-version && node scripts/version-commit.js major",
5151
"docs:start": "cd docs && npm start",
5252
"docs:build": "cd docs && npm run build",
5353
"docs:serve": "cd docs && npm run serve",

scripts/version-commit.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env node
2+
3+
import { execSync } from 'child_process';
4+
import fs from 'fs';
5+
import path from 'path';
6+
import { fileURLToPath } from 'url';
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
11+
// Read the current version from package.json
12+
const packageJsonPath = path.join(__dirname, '..', 'package.json');
13+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
14+
const version = packageJson.version;
15+
16+
const versionType = process.argv[2] || 'patch';
17+
18+
try {
19+
console.log(`Creating commit and tag for version ${version}...`);
20+
21+
// Add all changes
22+
execSync('git add .', { stdio: 'inherit' });
23+
24+
// Create commit with version message
25+
const commitMessage = `chore: bump version to ${version}`;
26+
execSync(`git commit -m "${commitMessage}"`, { stdio: 'inherit' });
27+
28+
// Create git tag
29+
const tagName = `v${version}`;
30+
execSync(`git tag "${tagName}"`, { stdio: 'inherit' });
31+
32+
console.log(`✅ Successfully created commit and tag ${tagName}`);
33+
console.log(`📝 Commit message: ${commitMessage}`);
34+
} catch (error) {
35+
console.error('❌ Error creating commit and tag:', error.message);
36+
process.exit(1);
37+
}

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kirapilot-app"
3-
version = "0.0.46"
3+
version = "0.0.52"
44
description = "Navigate your day with precision, powered by intelligent AI assistance!"
55
authors = ["Viet-Anh Nguyen (@vietanhdev)"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "KiraPilot",
4-
"version": "0.0.46",
4+
"version": "0.0.52",
55
"identifier": "com.vietanhdev.kirapilot",
66
"build": {
77
"beforeDevCommand": "npm run dev",

0 commit comments

Comments
 (0)