|
6 | 6 | You need to have push-access to the project's repository to make releases. Therefore, the following release steps are intended to be used as a reference for maintainers or [collaborators](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/permission-levels-for-a-personal-account-repository#collaborator-access-for-a-repository-owned-by-a-personal-account) with push-access to the repository.
|
7 | 7 | :::
|
8 | 8 |
|
9 |
| -1. Review the `## Unreleased changes` section in {repo-file}`docs/reference/changelog.md` by checking for consistency in format and, if necessary, refactoring related entries into relevant subsections (e.g., _Features_, _Docs_, _Bugfixes_, _Security_, etc.). Take a look at previous release notes for guidance and try to keep it consistent. |
10 |
| -2. Submit a pull request with these changes only and use the `"Cleanup release notes for X.X.X release"` template for the pull request title. ridgeplot uses the [SemVer](https://semver.org/) (`MAJOR.MINOR.PATCH`) versioning standard. You can determine the latest release version by running `git describe --tags --abbrev=0` on the `main` branch. Based on this, you can determine the next release version by incrementing the MAJOR, MINOR, or PATCH. More on this in the next section. Remember to merge this pull request into the `main` branch before continuing to the next step! |
11 |
| -3. Use the [bumpversion](https://github.com/peritus/bumpversion) utility to bump the current version. This utility will automatically bump the current version, and apply a relevant commit and git tag. E.g., |
| 9 | +1. Review the **`## Unreleased changes`** section at the top of the {repo-file}`docs/reference/changelog.md` file and, if necessary, group and/or split entries into relevant subsections (e.g., _Features_, _Docs_, _Bugfixes_, _Security_, etc.). Take a look at previous release notes for guidance and try to keep the format consistent. |
| 10 | +2. Review new usages of `.. versionadded::`, `.. versionchanged::`, and `.. deprecated::` directives that were added to the documentation since the last release. If necessary, update the version numbers in these directives to reflect the new release version. |
| 11 | + * You can determine the latest release version by running `git describe --tags --abbrev=0` on the `main` branch. Based on this, you can determine the next release version by incrementing the relevant _MAJOR_, _MINOR_, or _PATCH_ numbers. |
| 12 | +3. Use the [bumpversion](https://github.com/peritus/bumpversion) utility to automatically bump the current version, apply a relevant changes to the repository, and create a new commit and git tag. E.g., |
12 | 13 | ```shell
|
13 |
| - # Bump MAJOR version (e.g., 0.4.2 -> 1.0.0) |
| 14 | + # MAJOR release (e.g., 0.4.2 -> 1.0.0) |
14 | 15 | SKIP='no-commit-to-branch' bumpversion major
|
15 | 16 |
|
16 |
| - # Bump MINOR version (e.g., 0.4.2 -> 0.5.0) |
| 17 | + # MINOR release (e.g., 0.4.2 -> 0.5.0) |
17 | 18 | SKIP='no-commit-to-branch' bumpversion minor
|
18 | 19 |
|
19 |
| - # Bump PATCH version (e.g., 0.4.2 -> 0.4.3) |
| 20 | + # PATCH release (e.g., 0.4.2 -> 0.4.3) |
20 | 21 | SKIP='no-commit-to-branch' bumpversion patch
|
21 | 22 | ```
|
22 | 23 | You can always perform a dry-run to see what will happen under the hood.
|
23 | 24 | ```shell
|
24 | 25 | bumpversion --dry-run --verbose [--allow-dirty] [major,minor,patch]
|
25 | 26 | ```
|
26 |
| -4. Push your changes along with the new git tag to the remote repository. |
| 27 | +4. **DANGER:** Push your changes along with the new git tag to the remote repository. |
27 | 28 | ```shell
|
28 | 29 | git push --follow-tags
|
29 | 30 | ```
|
|
0 commit comments