You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ This is the JavaScript version of [OpenTelemetry](https://opentelemetry.io/), a
58
58
|| 0.12.x | 0.11.x |
59
59
|| 0.11.x | 0.10.x |
60
60
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
+
61
65
## Quick start
62
66
63
67
### Application Owner
@@ -434,3 +438,5 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
-[Release Process (Maintainers only)](#release-process)
8
8
-[Update to latest locally](#update-to-latest-locally)
9
9
-[Create a new branch](#create-a-new-branch)
10
10
-[Prepare each package for release](#prepare-each-package-for-release)
@@ -19,29 +19,31 @@ Release Process:
19
19
-[Update CHANGELOG](#update-changelog)
20
20
-[Known Issues](#known-issues)
21
21
22
-
## Update to latest locally
22
+
## Release Process
23
+
24
+
### Update to latest locally
23
25
24
26
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.
25
27
26
-
## Create a new branch
28
+
###Create a new branch
27
29
28
30
Create a new branch called `x.y.z-proposal` from the current commit.
29
31
30
-
## Prepare each package for release
32
+
###Prepare each package for release
31
33
32
34
Decide on the next `major.minor.patch` release number based on [semver](http://semver.org/) guidelines.
33
35
34
36
- Use `npm install` command to initialize all package directories
35
37
- Use `lerna publish --skip-npm --no-git-tag-version --no-push` to bump the version in all `package.json`
36
38
- Use `npm run bootstrap` to generate latest `version.ts` files
37
39
38
-
## Use the Changelog to create a GitHub Release
40
+
###Use the Changelog to create a GitHub Release
39
41
40
-
### Generate the changelog with lerna
42
+
####Generate the changelog with lerna
41
43
42
44
Since we use `lerna`, we can use [lerna-changelog](https://github.com/lerna/lerna-changelog#lerna-changelog)
43
45
44
-
#### How to use
46
+
#####How to use
45
47
46
48
Pass your [github token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) to generate the changelog automatically.
47
49
For security reasons, when you create a Github token, select the permissions: under **repo**, select **Access public repositories**, **Access commit status**.
From what `lerna-changelog` has generated, starts new Unreleased label. Follow the example set by recent Released label.
82
84
83
85
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).
84
86
85
-
## Create a new PR
87
+
###Create a new PR
86
88
87
89
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.
88
90
89
-
## Merge and pull
91
+
###Merge and pull
90
92
91
93
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.
92
94
93
-
## Publish all packages
95
+
###Publish all packages
94
96
95
97
Go into each directory and use `npm publish` (requires permissions) to publish the package. You can use the following script to automate this.
96
98
@@ -106,16 +108,16 @@ done
106
108
107
109
Check your e-mail and make sure the number of “you’ve published this module” emails matches the number you expect.
108
110
109
-
## Publish the GitHub Release
111
+
###Publish the GitHub Release
110
112
111
113
Publish the GitHub release, ensuring that the tag points to the newly landed commit corresponding to release proposal `x.y.z`.
112
114
113
-
## Update CHANGELOG
115
+
###Update CHANGELOG
114
116
115
117
- After releasing is done, update the [CHANGELOG.md](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md) and start new Unreleased label.
116
118
- Create a new commit with the exact title: `Post Release: update CHANGELOG.md`.
117
119
- Go through PR review and merge it to GitHub main branch.
118
120
119
-
## Known Issues
121
+
###Known Issues
120
122
121
123
- 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