Skip to content

Commit d667750

Browse files
author
Dimitar Fenerski
committed
chore: bump version across config files
1 parent 6ee224d commit d667750

File tree

6 files changed

+448
-204
lines changed

6 files changed

+448
-204
lines changed

package-lock.json

Lines changed: 62 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "axiomatic",
33
"private": true,
4-
"version": "0.0.4",
4+
"version": "0.0.5",
55
"type": "module",
66
"scripts": {
77
"dev": "tauri dev",

scripts/bump-version.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
if [ $# -ne 1 ]; then
5+
echo "Usage: $0 <version>"
6+
echo "Example: $0 0.1.0"
7+
exit 1
8+
fi
9+
10+
VERSION="$1"
11+
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
12+
13+
# package.json
14+
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" "$ROOT/package.json"
15+
16+
# tauri.conf.json
17+
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$VERSION\"/" "$ROOT/src-tauri/tauri.conf.json"
18+
19+
# Cargo.toml (only the first version line — the package version)
20+
sed -i "0,/^version = \".*\"/s//version = \"$VERSION\"/" "$ROOT/src-tauri/Cargo.toml"
21+
22+
# Lockfiles
23+
npm install --package-lock-only --silent 2>/dev/null
24+
(cd "$ROOT/src-tauri" && cargo generate-lockfile --quiet 2>/dev/null)
25+
26+
echo "Bumped to $VERSION:"
27+
grep -n "\"version\"" "$ROOT/package.json" | head -1
28+
grep -n "\"version\"" "$ROOT/src-tauri/tauri.conf.json" | head -1
29+
grep -n "^version" "$ROOT/src-tauri/Cargo.toml"

0 commit comments

Comments
 (0)