Skip to content

Commit f875672

Browse files
authored
Improve release scripts (#19)
1 parent 9069217 commit f875672

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
<div align="center">
2+
13
# Ord API
24

5+
Simple TypeScript client for `ord` API.
6+
See the [docs](https://docs.ordinals.com/guides/api).
7+
38
[![npm version](https://img.shields.io/npm/v/ordapi.svg)](https://www.npmjs.com/package/ordapi)
49
[![npm downloads](https://img.shields.io/npm/dm/ordapi.svg)](https://www.npmjs.com/package/ordapi)
510
[![License](https://img.shields.io/npm/l/ordapi.svg)](https://github.com/raphjaph/ordapi/blob/master/LICENSE)
611
[![CI Status](https://github.com/raphjaph/ordapi/workflows/CI/badge.svg)](https://github.com/raphjaph/ordapi/actions)
712

8-
Simple TypeScript client for `ord` API.
9-
See the [docs](https://docs.ordinals.com/guides/api).
13+
</div>
1014

1115
## Installation
1216

justfile

+20-3
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,31 @@ docs:
1818

1919
ci: install lint test
2020

21-
prepare-changelog revision='master':
21+
prepare-release revision='master':
2222
#!/usr/bin/env bash
2323
set -euxo pipefail
2424
git checkout {{ revision }}
2525
git pull origin {{ revision }}
2626
echo >> CHANGELOG.md
2727
git log --pretty='format:- %s' >> CHANGELOG.md
2828
$EDITOR CHANGELOG.md
29-
30-
publish:
29+
$EDITOR package.json
30+
$EDITOR docs/generateHtml.ts
31+
version=$(grep -m1 '"version":' package.json | cut -d'"' -f4)
32+
bun update
33+
just ci
34+
git checkout -b release-$version
35+
git add -u
36+
git commit -m "Release $version"
37+
gh pr create --web
38+
39+
publish-release revision='master':
40+
#!/usr/bin/env bash
41+
set -euxo pipefail
42+
rm -rf tmp/release
43+
git clone https://github.com/raphjaph/ordapi.git tmp/release
44+
cd tmp/release
45+
git checkout {{ revision }}
3146
bun publish
47+
cd ../..
48+
rm -rf tmp/release

0 commit comments

Comments
 (0)