Debian Codegraph @

docs/RELEASING.md

raw symbols SCIP
1 # Releasing urfave/cli
2
3 Releasing small batches often is [backed by
4 research](https://itrevolution.com/accelerate-book/) as part of the
5 virtuous cycles that keep teams and products healthy.
6
7 To that end, the overall goal of the release process is to send
8 changes out into the world as close to the time the commits were
9 merged to the `main` branch as possible. In this way, the community
10 of humans depending on this library are able to make use of the
11 changes they need **quickly**, which means they shouldn't have to
12 maintain long-lived forks of the project, which means they can get
13 back to focusing on the work on which they want to focus. This also
14 means that the @urfave/cli team should be able to focus on
15 delivering a steadily improving product with significantly eased
16 ability to associate bugs and regressions with specific releases.
17
18 ## Process
19
20 - Release versions follow [semantic versioning](https://semver.org/)
21 - Releases are associated with **signed, annotated git tags**[^1].
22 - Release notes are **automatically generated**[^2].
23
24 In the `main` or `v2-maint` branch, the current version is always
25 available via:
26
27 ```sh
28 git describe --always --dirty --tags
29 ```
30
31 **NOTE**: if the version reported contains `-dirty`, this is
32 indicative of a "dirty" work tree, which is not a great state for
33 creating a new release tag. Seek help from @urfave/cli teammates.
34
35 For example, given a described version of `v2.4.7-3-g68da1cd` and a
36 diff of `v2.4.7...` that contains only bug fixes, the next version
37 should be `v2.4.8`:
38
39 ```sh
40 git tag -a -s -m 'Release 2.4.8' v2.4.8
41 git push origin v2.4.8
42 ```
43
44 The tag push will trigger a GitHub Actions workflow and will be
45 **immediately available** to the [Go module mirror, index, and
46 checksum database](https://proxy.golang.org/). The remaining steps
47 require human intervention through the GitHub web view although
48 [automated solutions
49 exist](https://github.com/softprops/action-gh-release) that may be
50 adopted in the future.
51
52 - Open the [the new release page](https://github.com/urfave/cli/releases/new)
53 - At the top of the form, click on the `Choose a tag` select control and select `v2.4.8`
54 - In the `Write` tab below, click the `Auto-generate release notes` button
55 - At the bottom of the form, click the `Publish release` button
56 - :white_check_mark: you're done!
57
58 [^1]: This was not always true. There are many **lightweight git
59 tags** present in the repository history.
60
61 [^2]: This was not always true. The
62 [`docs/CHANGELOG.md`](./CHANGELOG.md) document used to be
63 manually maintained. Relying on the automatic release notes
64 generation requires the use of **merge commits** as opposed to
65 squash merging or rebase merging.