Skip to content

Commit

Permalink
fix(ci): semantic-release workflow for v9 releases (#1082)
Browse files Browse the repository at this point in the history
## 🧰 Changes

sets up the `semantic-release` configuration so we can properly maintain
v9 releases.

further reading:
https://semantic-release.gitbook.io/semantic-release/usage/workflow-configuration#maintenance-branches

outstanding work:

- [x] make sure that the major tag is only set on the `main` branch
release (e.g., if `v10.0.1` is being published then the major tagging
step should run, but if we're publishing a `v9.0.1` release then the
major tagging step should **not** run)
- [x] **(do this right before merging)** make sure a `v9` branch is
created and it's pointing to the same commit as the `v9` tag
- [ ] **(do this right after merging)** if the release was successfully
published to the `v9` branch, then delete the `v9` tag

## 🧬 QA & Testing

we truly won't know if this works until it's merged 🫠 but that's why we
have a `next` branch right?
  • Loading branch information
kanadgupta authored Dec 12, 2024
1 parent 0d0dbed commit 410daa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- next
- v9

env:
REGISTRY: ghcr.io
Expand Down
2 changes: 2 additions & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ branches:
- name: main
- name: next
prerelease: true
- name: v9
channel: 9.x

plugins:
- '@semantic-release/commit-analyzer'
Expand Down

0 comments on commit 410daa7

Please sign in to comment.