Skip to content

Commit ddd1ac3

Browse files
committed
README: improve Releasing instructions
They're probably still not perfect, but the previous ones were impossible with branch protection preventing push to `main`.
1 parent 4b01c78 commit ddd1ac3

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,14 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/buildk
213213
214214
```sh
215215
# Version bump the code, tag and push
216-
npm version [major/minor/patch]
217-
git push && git push --tags
216+
git switch --create prepare-v1-2-3
217+
npm version --no-git-tag-version v1.2.3
218+
git push
219+
220+
# Open a pull request, get it merged
221+
git switch main
222+
git tag v1.2.3
223+
git push --tags
218224
219225
# Publish to the NPM registry
220226
npm publish

0 commit comments

Comments
 (0)