From 939b1d0081e44510ac02e4656923d4734e8916d6 Mon Sep 17 00:00:00 2001 From: Axel Delafosse Date: Sun, 22 Feb 2026 11:47:21 -0800 Subject: [PATCH] Add patch release script --- README.md | 9 ++++----- package.json | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ab45494..d4bdcbf 100644 --- a/README.md +++ b/README.md @@ -110,12 +110,11 @@ source ~/.zshrc Example release: ```bash -# bump version -npm version patch +# bump patch version and push commit + tag +bun run release:patch -# push commit + tag created by npm version -git push origin main -git push --tags +# equivalent to: +# npm version patch && git push --follow-tags ``` ## Auto-update diff --git a/package.json b/package.json index 4e4d730..be7977f 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "build": "bun build --compile --outfile loop src/loop.ts", "install:global": "bun run build && bun run src/install.ts", + "release:patch": "npm version patch && git push --follow-tags", "check": "ultracite check", "fix": "ultracite fix" },