@@ -6,35 +6,35 @@ source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
6
6
cdroot
7
7
8
8
help () {
9
- cat << - EOH
10
- Usage: ./release.sh [--branch <name>] [--draft] [--dry-run] [--ref <ref>] [--major | --minor | --patch]
9
+ cat << EOH
10
+ Usage: ./release.sh [--branch <name>] [--draft] [--dry-run] [--ref <ref>] [--major | --minor | --patch]
11
11
12
- This script should be called to create a new release.
12
+ This script should be called to create a new release.
13
13
14
- When run, this script will display the new version number and optionally a
15
- preview of the release notes. The new version will be selected automatically
16
- based on if the release contains breaking changes or not. If the release
17
- contains breaking changes, a new minor version will be created. Otherwise, a
18
- new patch version will be created.
14
+ When run, this script will display the new version number and optionally a
15
+ preview of the release notes. The new version will be selected automatically
16
+ based on if the release contains breaking changes or not. If the release
17
+ contains breaking changes, a new minor version will be created. Otherwise, a
18
+ new patch version will be created.
19
19
20
- Set --ref if you need to specify a specific commit that the new version will
21
- be tagged at, otherwise the latest commit will be used.
20
+ Set --ref if you need to specify a specific commit that the new version will
21
+ be tagged at, otherwise the latest commit will be used.
22
22
23
- Set --minor to force a minor version bump, even when there are no breaking
24
- changes. Likewise for --major. By default a patch version will be created.
23
+ Set --minor to force a minor version bump, even when there are no breaking
24
+ changes. Likewise for --major. By default a patch version will be created.
25
25
26
- Set --dry-run to run the release workflow in CI as a dry-run (no release will
27
- be created).
26
+ Set --dry-run to run the release workflow in CI as a dry-run (no release will
27
+ be created).
28
28
29
- To mark a release as containing breaking changes, the commit title should
30
- either contain a known prefix with an exclamation mark ("feat!:",
31
- "feat(api)!:") or the PR that was merged can be tagged with the
32
- "release/breaking" label.
29
+ To mark a release as containing breaking changes, the commit title should
30
+ either contain a known prefix with an exclamation mark ("feat!:",
31
+ "feat(api)!:") or the PR that was merged can be tagged with the
32
+ "release/breaking" label.
33
33
34
- To test changes to this script, you can set --branch <my-branch>, which will
35
- run the release workflow in CI as a dry-run and use the latest commit on the
36
- specified branch as the release commit. This will also set --dry-run.
37
- EOH
34
+ To test changes to this script, you can set --branch <my-branch>, which will
35
+ run the release workflow in CI as a dry-run and use the latest commit on the
36
+ specified branch as the release commit. This will also set --dry-run.
37
+ EOH
38
38
}
39
39
40
40
branch=main
0 commit comments