Skip to content

Commit 4ec8f45

Browse files
authored
Version Bump v0.7.1 (#343)
* Include instructions on how to release a new version * Version Bump v0.7.1
1 parent e7c518c commit 4ec8f45

29 files changed

+460
-62
lines changed

.github/workflows/publish-packages.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Publish Packages
2-
on: workflow_dispatch
2+
on:
3+
workflow_dispatch
4+
release:
5+
types: [created]
36
jobs:
47
publish-packages:
58
runs-on: ubuntu-latest
@@ -9,7 +12,7 @@ jobs:
912
steps:
1013
- uses: actions/checkout@v2
1114
with:
12-
ref: ${{ github.event.inputs.ref }}
15+
ref: ${{ github.ref }}
1316
- uses: actions/setup-node@v2
1417
with:
1518
node-version: '14.x'

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ We are still using node 14.x and npm 6.x. If you are [using nvm](https://github.
1313
- `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.
1414
- `npm run build`: Create a production build of all packages. Mainly used by CI when packaging up a production version of the app.
1515
- `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.
1716

1817
## Package Overview
1918

@@ -36,6 +35,24 @@ A standalone application with it's own entry point. Recommend using the [create-
3635

3736
Component template is located in `examples/component-template`. Use that template when making new component packages/libraries.
3837

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+
3956
## Browser Support
4057

4158
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.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "0.7.0"
5+
"version": "0.7.1"
66
}

0 commit comments

Comments
 (0)