This document contains instructions and guidelines for maintainer tasks, like publishing and deploying new versions of the Guides.
- Check briefly to see if there are any PRs that should be merged in
- Make sure that if PRs were merged into an earlier version, they have also been included in the version you are about to release. This is a manual process at the moment.
It is required that all maintainers use 2FA (two factor authentication). These are the permissions needed for a deployment of the Guides:
- npm admin or contributor
- Merge permissions on the repository
- Percy dashboard
If you are lacking any permissions, post in the learning team channel on Slack.
When you have all those permissions set up:
- Clone the guides-source repository to your local machine
- Double check that you have the latest commits on
master
- Edit
versions.yml
- add the version number to both the end of the list and thecurrentVersion
. The last item andcurrentVersion
should match. - Commit the change.
- If you don't have it already, install
np
withnpm install -g np
npm login
- The following command will begin the build when executed from the root of the guides-source repo:
np
- When prompted, choose
minor
- In about 5 minutes, you will see a PR from dependabot on guides-app. Here is an example. After the tests pass, merge it. If content has changed significantly, Percy visual CI may indicate changes, so use the dashboard to review. Follow the link in the CI notifications.
- Check to make sure the deployment was successful before you walk away. It will take some time to deploy.
- Party!