Releasing Reveal involves releasing NPM packages @cognite/reveal
and/or updating documentation. The documentation is automatically
deployed when pushed to master.
Publishing of new packages to NPM is handled automatically by a Github Actions workflow which is triggered when publishing a new release on GitHub. The only consideration you need to make when publishing a new release, is that the NPM package version must be unique meaning that the package version has not been released previously.
To update the documentation with any changes that might have been added since the last release:
Assuming you are at the root of the project navigate do the documentation folder and run the update script
cd documentation
# replaces the 'latest' documentation by the 'next'
yarn replace-latest-by-next
-
Commit these changes
-
Create a PR with the changes.
Once the PR is merged into master, the documentation will be automatically deployed.
- Go to https://github.com/cognitedata/reveal/releases/new
- Under the "Tag version" field, add a new tag for this release with the name and version of the package, e.g.
@cognite/[email protected]
- Specify the same release title as the tag name.
- Write the changes that new version brings. Get inspired by done tasks from your sprint board. Note!
Remember to specify the correct ThreeJS version required by the released version - you can find this in package.json
of the viewer.
Also, you can check what's committed from the previous tag with that command:
Use the following template:
git log --pretty=format:"* %s" @cognite/[email protected]
Reveal comes with ThreeJS embedded so you do not have this as a dependency in your project. If you still want to have it as a direct dependency, it must match the version used by Reveal (r<THREEJS_VERSION>). You can also use three.js version exported by Reveal as import { THREE } from '@cognite/reveal.
### 🚀 Features
* commit message
### 🐞 Bug fixes and enhancements
* commit message
### 📖 Documentation
* commit message
See [installation documentation](https://cognitedata.github.io/reveal-docs/docs/installation) for details about installing Reveal.
- Hit the green "Publish release" button