Skip to content

Commit

Permalink
docs: update release docs with major update info
Browse files Browse the repository at this point in the history
  • Loading branch information
balzss committed Jul 25, 2024
1 parent 77218be commit 48f104d
Showing 1 changed file with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions docs/contributor-docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ category: Contributor Guides
order: 5
---

# Release Process
## Release Process for Minor Updates

This document outlines the steps required for the release process. Please follow the instructions below:

Expand All @@ -19,7 +19,7 @@ git checkout master

##### 2. Create a New Branch for Release

- The branch should be created from the latest master.
- The branch should be created from the latest master. (note: if a local branch named `release` already exists, delete it beforehand)

```text
---
Expand Down Expand Up @@ -54,7 +54,7 @@ npm run bump
type: code
---
git add .
git commit --amend
HUSKY=0 git commit --amend
```

##### 6. Push Your Changes to Remote
Expand All @@ -78,15 +78,11 @@ git push origin release

- The release process may take some time, be patient.

##### 10. Announce the Release on Slack
##### 10. Add a New Release to GitHub

- Once the release is successful, announce it on the #instui channel on Slack. Be sure to include the changelog and new version in your announcement.
- Add a new release to GitHub. This will display the newly released version as the latest and automatically triggers a release notification in the #instui Slack channel.

##### 11. Add a New Release to GitHub

- Finally, add a new release to GitHub. This will display the newly released version as the latest.

##### 12. Release Process for Legacy Versions
## Release Process for Legacy Versions

This document describes the steps to follow when releasing updates to legacy versions. The example given is for v7:

Expand Down Expand Up @@ -151,3 +147,38 @@ git push origin release
##### 9. Announce the Release

- Once the release is successful, announce it on the #instui channel on Slack. Be sure to include the changelog and new version in your announcement.

## Release Process for Major updates

Major version updates are very similar to minor updates but there are a couple additinal things to take care of.

##### 1. Create a maintenance branch

Before the update, create a maintenance branch from the current master and push it to remote. If the current major version is 11, then:

```text
---
type: code
---
git checkout -b v11_maintenance
git push origin v11_maintenance
```

##### 2. Update the version mapping for the docs

Update the fields in the file `./packages/__docs__/versions.json` with the latest version and the maintenance branch map. Remove old unsupported versions if they are no longer needed and you don't want them to appear in the docs page version selector.

##### 3. Add redirect for the legacy docs

Add a new line to the file `./packages/__docs__/_redirects` to redirect the legacy docs. If the current major version is 11, then:

```text
---
type: code
---
/v11/* https://v11--preview-instui.netlify.app/:splat 200
```

##### 4. Do a release like it was a minor update

Follow the same process as it's described above. The `npm run bump` command should automatically recognise that there were a breaking commit and it should be a major version change.

0 comments on commit 48f104d

Please sign in to comment.