Skip to content

Commit 287098d

Browse files
authored
chore: Link to spec versioning doc (#1737)
1 parent 975abda commit 287098d

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ This is the JavaScript version of [OpenTelemetry](https://opentelemetry.io/), a
5858
| | 0.12.x | 0.11.x |
5959
| | 0.11.x | 0.10.x |
6060

61+
## Versioning
62+
63+
The current version for each package can be found in the respective `package.json` file for that module. For additional details see the [versioning and stability][spec-versioning] document in the specification.
64+
6165
## Quick start
6266

6367
### Application Owner
@@ -434,3 +438,5 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
434438
[otel-contrib-instrumentation-document-load]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web/opentelemetry-instrumentation-document-load
435439
[otel-contrib-instrumentation-hapi]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-instrumentation-hapi
436440
[otel-contrib-instrumentation-koa]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-instrumentation-koa
441+
442+
[spec-versioning]: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/versioning-and-stability.md

RELEASING.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Releasing OpenTelemetry Packages (for Maintainers Only)
1+
# Releasing OpenTelemetry Packages
22

33
This document explains how to publish all OT modules at version x.y.z. Ensure that you’re following semver when choosing a version number.
44

55
Release Process:
66

7-
- [Releasing OpenTelemetry Packages (for Maintainers Only)](#releasing-opentelemetry-packages-for-maintainers-only)
7+
- [Release Process (Maintainers only)](#release-process)
88
- [Update to latest locally](#update-to-latest-locally)
99
- [Create a new branch](#create-a-new-branch)
1010
- [Prepare each package for release](#prepare-each-package-for-release)
@@ -19,29 +19,31 @@ Release Process:
1919
- [Update CHANGELOG](#update-changelog)
2020
- [Known Issues](#known-issues)
2121

22-
## Update to latest locally
22+
## Release Process
23+
24+
### Update to latest locally
2325

2426
Use `git fetch` and `git checkout origin/main` to ensure you’re on the latest commit. Make sure you have no unstaged changes. Ideally, also use `git clean -dfx` to remove all ignored and untracked files.
2527

26-
## Create a new branch
28+
### Create a new branch
2729

2830
Create a new branch called `x.y.z-proposal` from the current commit.
2931

30-
## Prepare each package for release
32+
### Prepare each package for release
3133

3234
Decide on the next `major.minor.patch` release number based on [semver](http://semver.org/) guidelines.
3335

3436
- Use `npm install` command to initialize all package directories
3537
- Use `lerna publish --skip-npm --no-git-tag-version --no-push` to bump the version in all `package.json`
3638
- Use `npm run bootstrap` to generate latest `version.ts` files
3739

38-
## Use the Changelog to create a GitHub Release
40+
### Use the Changelog to create a GitHub Release
3941

40-
### Generate the changelog with lerna
42+
#### Generate the changelog with lerna
4143

4244
Since we use `lerna`, we can use [lerna-changelog](https://github.com/lerna/lerna-changelog#lerna-changelog)
4345

44-
#### How to use
46+
##### How to use
4547

4648
Pass your [github token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) to generate the changelog automatically.
4749
For security reasons, when you create a Github token, select the permissions: under **repo**, select **Access public repositories**, **Access commit status**.
@@ -55,15 +57,15 @@ GITHUB_AUTH=<your token> lerna-changelog
5557
It will print something like:
5658

5759
```md
58-
## Unreleased (2018-05-24)
60+
### Unreleased (2018-05-24)
5961

60-
#### :bug: Bug Fix
62+
##### :bug: Bug Fix
6163
* [#198](https://github.com/my-org/my-repo/pull/198) Avoid an infinite loop ([@helpful-hacker](https://github.com/helpful-hacker))
6264

63-
#### :house: Internal
65+
##### :house: Internal
6466
* [#183](https://github.com/my-org/my-repo/pull/183) Standardize error messages ([@careful-coder](https://github.com/careful-coder))
6567

66-
#### Commiters: 2
68+
##### Commiters: 2
6769
- Helpful Hacker ([@helpful-hacker](https://github.com/helpful-hacker))
6870
- [@careful-coder](https://github.com/careful-coder)
6971
```
@@ -76,21 +78,21 @@ You can also use the `--from` and `--to` options to view a different range of pu
7678
GITHUB_AUTH=xxxxx lerna-changelog --from=v1.0.0 --to=v2.0.0
7779
```
7880

79-
#### Update Changelog file
81+
##### Update Changelog file
8082

8183
From what `lerna-changelog` has generated, starts new Unreleased label. Follow the example set by recent Released label.
8284

8385
On [GitHub Releases](https://github.com/open-telemetry/opentelemetry-js/releases), follow the example set by recent releases to populate a summary of changes, as well as a list of commits that were applied since the last release. Save it as a draft, don’t publish it. Don’t forget the tag -- call it `vx.y.z` and leave it pointing at `main` for now (this can be changed as long as the GitHub release isn’t published).
8486

85-
## Create a new PR
87+
### Create a new PR
8688

8789
Create a pull request titled `chore: x.y.z release proposal`. The commit body should just be a link to the draft notes. Someone who can access draft notes should approve it, looking in particular for test passing, and whether the draft notes are satisfactory.
8890

89-
## Merge and pull
91+
### Merge and pull
9092

9193
Merge the PR, and pull the changes locally (using the commands in the first step). Ensure that `chore: x.y.z release proposal` is the most recent commit.
9294

93-
## Publish all packages
95+
### Publish all packages
9496

9597
Go into each directory and use `npm publish` (requires permissions) to publish the package. You can use the following script to automate this.
9698

@@ -106,16 +108,16 @@ done
106108

107109
Check your e-mail and make sure the number of “you’ve published this module” emails matches the number you expect.
108110

109-
## Publish the GitHub Release
111+
### Publish the GitHub Release
110112

111113
Publish the GitHub release, ensuring that the tag points to the newly landed commit corresponding to release proposal `x.y.z`.
112114

113-
## Update CHANGELOG
115+
### Update CHANGELOG
114116

115117
- After releasing is done, update the [CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) and start new Unreleased label.
116118
- Create a new commit with the exact title: `Post Release: update CHANGELOG.md`.
117119
- Go through PR review and merge it to GitHub main branch.
118120

119-
## Known Issues
121+
### Known Issues
120122

121123
- The `examples/` and `getting-started/` folders are not part of lerna packages, we need to manually bump the version in `package.json`.

0 commit comments

Comments
 (0)