Debian Codegraph @

third_party/python/aiohttp/vendor/llhttp/docs/releasing.md

raw
1 # How to release a new version of llhttp
2
3 ## What does releasing involves?
4
5 These are the required steps to release a new version of llhttp:
6
7 1. Increase the version number.
8 2. Build it locally.
9 3. Create a new build and push it to GitHub.
10 4. Create a new release on GitHub release.
11
12 > Do not try to execute the commands in the Makefile manually. This is really error-prone!
13
14 ## Which commands to run?
15
16 First of all, make sure you have [GitHub CLI](https://cli.github.com) installed and configured. While this is not strictly necessary, it will make your life way easier.
17
18 As a preliminary check, lint the code, run the build command and execute the test suite locally:
19
20 ```
21 npm run lint
22 npm run build
23 npm run test
24 ```
25
26 If all goes good, you are ready to go!
27
28 To release a new version of llhttp, first increase the version using `npm` and make sure it also execute the `postversion` script. Unless you have some very specific setup, this should happen automatically, which means the following command will suffice:
29
30 ```
31 npm version [major|minor|patch]
32 ```
33
34 The command will increase the version and then will create a new release branch on GitHub.
35
36 > Even thought there is a package on NPM, it is not updated anymore. NEVER RUN `npm publish`!
37
38 It's now time to create the release on GitHub. If you DON'T have GitHub CLI available, skip to the next section, otherwise run the following command:
39
40 ```
41 npm run github-release
42 ```
43
44 This command will create a draft release on GitHub and then show it in your browser so you can review and publish it.
45
46 Congratulation, you are all set!
47
48 ## Create a GitHub release without GitHub CLI
49
50 > From now on, `$VERSION` will be the new version you are trying to create, including the leading letter, for instance `v6.0.9`.
51
52 If you don't want to or can't use GitHub CLI, you can still create the release on GitHub following this procedure.
53
54 1. Go on GitHub and start creating a new release which targets tag `$VERSION`. Generate the notes using the `Generate release notes` button.
55
56 2. At the bottom of the generated notes, make sure the previous and current version in the notes are correct.
57
58 The last line should be something like this: `**Full Changelog**: https://github.com/nodejs/llhttp/compare/v6.0.8...v6.0.9`
59
60 In this case it says we are creating release `v6.0.9` and we are showing the changes between `v6.0.8` and `v6.0.9`.
61
62 3. Change the target of the release to point to tag `release/$VERSION`.
63
64 4. Review and then publish the release.
65
66 Congratulation, you are all set!