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
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ We are still using node 14.x and npm 6.x. If you are [using nvm](https://github.
13
13
-`npm test`: Start running tests in all packages and watching (when possible). Use when you're developing, and any breaking changes will be printed out automatically.
14
14
-`npm run build`: Create a production build of all packages. Mainly used by CI when packaging up a production version of the app.
15
15
-`npm run version-bump`: Update the version of all packages. Used when updating/tagging new versions. You'll need to select whether to do a [patch, minor, or major version](https://semver.org/). It does not commit the changes.
16
-
-`npm run publish-all`: Publish the current versions of the packages that have not yet been published. If all packages with the current version have already been published, does nothing. Should be done after doing an `npm version-bump` and committing/tagging the release.
17
16
18
17
## Package Overview
19
18
@@ -36,6 +35,24 @@ A standalone application with it's own entry point. Recommend using the [create-
36
35
37
36
Component template is located in `examples/component-template`. Use that template when making new component packages/libraries.
38
37
38
+
## Releasing a New Version
39
+
40
+
When releasing a new version, you need to commit a version bump, then tag and create the release. By creating the release, the [publish-packages action](.github/workflows/publish-packages.yml) will be triggered, and will automatically publish the packages. Some of these steps below also make use of the [GitHub CLI](https://github.com/cli/cli)
41
+
42
+
1. Bump the version:
43
+
- Run `npm run version-bump`. Select the type of version bump ([patch, minor, or major version](https://semver.org/)). Remember the version for the next steps, and fill it in instead of `<version>` (should be in semver format with `v` prefix, e.g. `v0.7.1`).
44
+
- Commit your changes. `git commit -a -m "Version Bump <version>"`
45
+
- Create a pull request. `gh pr create -f -w`
46
+
- Approve the pull request and merge to `main`.
47
+
2. Generate the changelog:
48
+
- Generate a [GitHub Personal access token](https://github.com/settings/tokens) with the `public_repo` scope. Copy this token and replace `<token>` with it below.
49
+
- Generate the changelog: `GITHUB_AUTH=<token> npm run changelog -- --next-version=<version> > /tmp/changelog_<version>.md`
50
+
3. Create the tag. Use the command line to create an annotated tag (lightweight tags will not work correctly with lerna-changelog): `git tag -a <version> -F /tmp/changelog_<version>.md`
51
+
4. Push the tag: `git push origin <version>`
52
+
5. Create the release: `gh release create <version> -F ~/tmp/changelog_<version>.md`
53
+
54
+
After the release is created, you can go to the [actions page](https://github.com/deephaven/web-client-ui/actions) to see the publish action being kicked off.
55
+
39
56
## Browser Support
40
57
41
58
Support is best for [Google Chrome](https://www.google.com/intl/en_ca/chrome/) and Chromium based browsers (such as [Microsoft Edge based on Chromium](https://www.microsoft.com/en-us/edge)). We try and maintain compatibility with [Mozilla Firefox](https://www.mozilla.org/en-CA/firefox/new/) and [Apple Safari](https://www.apple.com/ca/safari/) as well.
0 commit comments