-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
76 lines (67 loc) · 1.74 KB
/
justfile
File metadata and controls
76 lines (67 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
set dotenv-load := true
root_dir := justfile_directory()
src_dir := root_dir / "src"
cli *args:
node dist/cli.js {{ args }}
deps:
pnpm install
build:
pnpm build
link:
pnpm link --global
lint target="all":
#!/usr/bin/env bash
set -euox pipefail
case "{{ target }}" in
all)
just lint src
just lint config
just lint justfile
;;
src)
npx prettier --write "{{ src_dir }}/**/*.ts"
cd "{{ src_dir }}"
pnpm lint
;;
config)
npx prettier --write "**/*.{json,yml,yaml,md}"
;;
justfile)
just --fmt --unstable
;;
*)
echo "Unknown target: {{ target }}"
exit 1
;;
esac
release:
#!/usr/bin/env bash
set -euo pipefail
echo "⚠️ WARNING: This will trigger a production release!"
echo " - Merge main → release"
echo " - Push to origin/release"
echo " - Trigger GitHub Actions release workflow"
echo ""
read -p "Continue? (type 'yes' to confirm): " confirm
if [[ "$confirm" != "yes" ]]; then
echo "❌ Release cancelled."
exit 1
fi
echo "🚀 Starting release process..."
echo "📦 Merging main to release branch..."
git checkout release
git merge main
git push origin release
git checkout main
echo ""
echo "✅ Release branch updated!"
echo "🔄 GitHub Actions will now:"
echo " 1. Analyze commits for version bump"
echo " 2. Generate release notes"
echo " 3. Create tag and GitHub release"
echo " 4. Update CHANGELOG.md"
echo " 5. Publish to npm"
echo ""
echo "📊 Check progress: https://github.com/KubrickCode/baedal/actions"
test *args:
pnpm test {{ args }}