Skip to content

Commit de296bb

Browse files
Add patch release script (#10)
1 parent ca015bb commit de296bb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,11 @@ source ~/.zshrc
110110
Example release:
111111

112112
```bash
113-
# bump version
114-
npm version patch
113+
# bump patch version and push commit + tag
114+
bun run release:patch
115115

116-
# push commit + tag created by npm version
117-
git push origin main
118-
git push --tags
116+
# equivalent to:
117+
# npm version patch && git push --follow-tags
119118
```
120119

121120
## Auto-update

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"build": "bun build --compile --outfile loop src/loop.ts",
88
"install:global": "bun run build && bun run src/install.ts",
9+
"release:patch": "npm version patch && git push --follow-tags",
910
"check": "ultracite check",
1011
"fix": "ultracite fix"
1112
},

0 commit comments

Comments
 (0)