-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (42 loc) · 944 Bytes
/
justfile
File metadata and controls
50 lines (42 loc) · 944 Bytes
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
install:
bun install
build: install
bun run build
test: install
bun run test
fmt: install
bun run format
lint: install
bun run lint
docs:
bun run docs
ci: install lint test
prepare-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
git checkout {{ revision }}
git pull origin {{ revision }}
echo >> CHANGELOG.md
git log --pretty='format:- %s' >> CHANGELOG.md
$EDITOR CHANGELOG.md
$EDITOR package.json
$EDITOR docs/generateHtml.ts
version=$(grep -m1 '"version":' package.json | cut -d'"' -f4)
bun update
just ci
git checkout -b release-$version
git add -u
git commit -m "Release $version"
gh pr create --web
publish-release revision='master':
#!/usr/bin/env bash
set -euxo pipefail
rm -rf tmp
git clone https://github.com/raphjaph/ordapi.git tmp/release
cd tmp/release
git checkout {{ revision }}
bun install
bun run build
bun publish
cd ../..
rm -rf tmp