Skip to content

Commit a7e5887

Browse files
authored
chore(maintenance): add release script (#10)
1 parent 5c0c635 commit a7e5887

4 files changed

Lines changed: 423 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,11 @@ bun run patch-openapi -- --refetch --openapi_url http://localhost:3000/generated
105105
# Patch only (no fetch)
106106
bun run patch-openapi
107107
```
108+
109+
## Release
110+
111+
```sh
112+
bun run release
113+
```
114+
115+
This interactively bumps the package version, runs tests, rebuilds the CLI, checks the npm package contents with `npm pack --dry-run`, then asks before publishing to npm.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"patch-openapi": "bun scripts/patch-openapi.ts",
3131
"refetch-openapi": "bun scripts/patch-openapi.ts --refetch",
3232
"build": "bun run refetch-openapi && bun build src/cli.ts --outdir dist --target node --format esm",
33+
"release": "bun scripts/release.ts",
3334
"prepublishOnly": "rm -rf dist && bun run build"
3435
},
3536
"dependencies": {

0 commit comments

Comments
 (0)