diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..cecd172 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://unpkg.com/release-it@17/schema/release-it.json", + "git": { + "commitMessage": "chore: release v${version}🔖", + "tagAnnotation": "v${version}", + "commitArgs": ["-S"], + "requireBranch": true, + "requireCommits": true + }, + "github": { + "release": true, + "web": true, + "releaseName": "v${version}" + }, + "npm": { + "publish": false + }, + "plugins": { + "@release-it/conventional-changelog": { + "infile": "CHANGELOG.md", + "header": "# TableX's Changelog", + "ignoreRecommendedBump": true, + "preset": { + "name": "angular" + } + }, + "@release-it/bumper": { + "in": { + "file": "Cargo.toml", + "path": "workspace.package.version" + }, + "out": { + "file": "Cargo.toml", + "path": "workspace.package.version" + } + } + } +} diff --git a/Cargo.toml b/Cargo.toml index 9268836..fe26d77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ resolver = "2" [workspace.package] description = "Table Viewer for modern developers" -version = "0.3.4" +version = "0.3.9" license = "MIT" authors = ["Kareem Ebrahim "] repository = "https://github.com/kareemmahlees/tablex" diff --git a/bun.lockb b/bun.lockb index 7d1d633..8fc2c31 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 085ca77..bbacbcc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tablex", - "version": "0.1.0", + "version": "0.0.0", "license": "MIT", "author": { "name": "Kareem Ebrahim" @@ -28,13 +28,16 @@ "rust:lint": "cargo clippy", "lint": "bun ts:lint && bun rust:lint", "format:check": "bunx prettier . --check", - "format:fix": "bunx prettier . --write" + "format:fix": "bunx prettier . --write", + "release": "release-it" }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.7", "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.3", + "@release-it/bumper": "^6.0.1", + "@release-it/conventional-changelog": "^8.0.2", "@types/bun": "^1.1.7", "@types/node": "^20.16.1", "@types/react": "^18.3.4", @@ -50,6 +53,7 @@ "postcss": "^8.4.41", "prettier": "3.1.1", "prettier-plugin-tailwindcss": "^0.6.6", + "release-it": "^17.6.0", "tailwindcss": "^3.4.10", "typescript": "^5.5.4" },