fix: release and admin bootstrap

This commit is contained in:
2026-06-26 14:01:38 +02:00
parent 4ad394b70b
commit f6434af4a2
2 changed files with 2 additions and 20 deletions
+2 -1
View File
@@ -28,4 +28,5 @@ project.inlang/cache/
*.db
CONTEXT.md
build.sh
.claude
.claude
release.sh
-19
View File
@@ -1,19 +0,0 @@
#!/usr/bin/env bash
# Cut a release: bump package.json, tag, push.
# Gitea Actions creates the release; Komodo builds & pushes the image via webhook.
# Usage: ./release.sh [patch|minor|major] (default: patch)
set -euo pipefail
cd "$(dirname "$0")"
BUMP="${1:-patch}"
[ -z "$(git status --porcelain)" ] || { echo "working tree dirty, commit first"; exit 1; }
# verify we can push BEFORE bumping — otherwise a failed push leaves the
# version advanced locally with nothing on the remote.
git push --dry-run >/dev/null 2>&1 || { echo "git push auth failed — fix your remote/credentials before bumping"; exit 1; }
# bumps version in package.json AND creates commit + tag vX.Y.Z
bun pm version "$BUMP"
git push --follow-tags
echo "released v$(bun -e 'console.log(require("./package.json").version)')"