Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 862b12c444 | |||
| f6434af4a2 |
+2
-1
@@ -28,4 +28,5 @@ project.inlang/cache/
|
||||
*.db
|
||||
CONTEXT.md
|
||||
build.sh
|
||||
.claude
|
||||
.claude
|
||||
release.sh
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "clean",
|
||||
"private": true,
|
||||
"version": "0.7.0",
|
||||
"version": "0.7.1",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev:types": "bun run type:generate && bun --bun vite dev --host",
|
||||
|
||||
-19
@@ -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)')"
|
||||
Reference in New Issue
Block a user