This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 759
Managing Releases
Cory Rylan edited this page Aug 9, 2019
·
4 revisions
This page describes the steps to follow when releasing a new version of Clarity. The basic flow is to organize the tickets in GitHub, test the build, add release information, and publish.
- Create a new milestone for the next expected version (usually next patch, can always be edited).
- Look at the milestone for the version you are releasing.
- Compare the commits in master to find any PRs that might be missing and link them.
- Check if all closed pull requests were properly tagged with the milestone.
- Review the open PRs.
- If any of them seem like they should be merged (such as they are approved but not merged), check with the owner or team to see if it can be merged. Make sure to also tag them with the milestone if not already.
- If an open PRs are tied to the milestone for this release and you are not going to merge them, move them to the next milestone.
- Look at the recently closed PRs (note that GitHub displays them in the order they were created not in the order they were merged), and see if any public changes are missing a milestone. If so, add the correct milestone.
- If you haven't already, clone the vmware/clarity repository (leave it as the origin) and we recommend to use this repo only for releasing.
git clone git@github.com:vmware/clarity.git release
- You'll want to always sync the latest code from the master branch.
git pull
- Make sure you get the latest node modules.
npm install
- Start the local server to preview the dev app.
ng serve
- Review the PRs for the milestone and verify that the changes appear to be working as expected for each.
- Keep track of the features and write up release notes for each as you go (helps for later when doing website notes).
- If anything seems out of place, review with the author or team before continuing with the release.
- Verify that the tests are passing.
npm run test:travis
- Review the latest build on Travis for master to see if everything passes.
- Update the version number in the package.json and package-lock.json files.
- Update the release notes for the website, see https://github.com/vmware/clarity/wiki/Building-the-Website#adding-a-new-release.
- Preview the website and release notes locally.
npm run website:start
- Generate markdown changelog file by running
npm run changelog
- Build the packages.
npm run build
- Commit the changes to the master branch.
git commit -s -S -m 'release v1.0.0'
- Tag the commit with the version.
git tag v1.0.0
- Push the commit branch and tag (you must activate temporary admin rights first at https://github.vmware.com/admin).
git push origin master v1.0.0
- Determine which publish script to run, there is latest when you are publishing the current version, and next when you are publishing a prerelease, and other scripts for old LTS versions.
- Run publish to NPM. If it is the latest release use
npm run publish:latest
, if it is a prerelease usenpm run publish:next
. - Check if the packages appear on NPM, and that you get a confirmation email about the publishing. It may take a few minutes to appear.
- Announce the release where appropriate.
If new icons or updates to existing icons were made:
- Clone the Clarity Assets repo.
- After building the main Clarity project, unzip the icon folder the new icon is located in
/dist/clr-icons/shapes/
. - Copy any new icons to the appropriate icons folder in the Clarity Assets repo.
- Commit and push the updated icons to master.