-
Generate a new version using:
yarn release:version
This command will bump the version in every package of the project.
-
Generate the changelog using:
yarn release:changelog
Running this command requires a GitHub personal access token with the
public_repo
scope.Set
GITHUB_TOKEN
variable in.env
file so to avoid passing it with command every timeOR
pass token with argument
--githubToken YOUR_TOKEN
-
Copy the generated changelog from the console, clean it up, add a short summary of the release highlights and use the new version number as the title.
-
Prepend the changelog to
CHANGELOG.md
. -
Open a PR with the proposed changes.
-
Review/merge the PR — once the PR is merged to
master
a Docker image is built for the commit, tagged with the commit SHA and then pushed to Docker Hub, just like for any other commit inmaster
. -
Wait for the Docker build to finish. (You can find the job in the CircleCI pipelines). Note that you can always verify the built docker image by running it as
TAG=<git-sha> docker-compose -f docker/compose/docker-compose.yml up
Where
<git-sha>
is the commit on master that you want to test. -
Release the Docker image using (requires GitHub authentication token):
# add --prerelease if necessary yarn release:docker
This command runs a GitHub action that retags the Docker image of the release commit in
master
to the version being released and also to "latest", and pushes those new tags. During the release, no new Docker images are created. -
Publish the documentation. The documentation must be updated on the
docs-latest
branch.git push upstream master:docs-latest -f
You can follow the deployment process on the Netlify Dashboard. Once deployed, it will be accessible at https://mui-toolpad-docs.netlify.app/.
-
- Use
<version number>
to Choose a tag (when you enter new version GH UI will pop a suggestionCreate new tag: *** on publish
) - Use
<commit of merged PR>
as the target - Use the cleaned changelog as the content of Describe this release
- Use
<version number>
as the Release title - Mark as prerelease if necessary.
- Publish release
- Use