Commit Graph
6 Commits
Author SHA1 Message Date
Jiwon ChoiandGitHub 3175a22feb [release] use backport NPM dist tag for backports (#79538)
### Why?

When backport releases are published, they are marked as `latest` dist
tag, which makes `next@latest` not the "latest."

x-ref: [slack
thread](https://vercel.slack.com/archives/C04LGE5SYEB/p1747984846615469)

### How?

Use `stable` dist tag for backports.
2025-05-26 12:14:01 +02:00
2219ba0da9 [release] fix: correctly set tag during publish (#79548)
### Why?

The `process.env.RELEASE_TYPE` handling was set incorrectly. It
should've been set to the "trigger" workflow, but instead, it was set to
the "publish" workflow. Therefore, the "publish" workflow needs to know
which dist tag to set for publish.

---------

Co-authored-by: Sebastian Sebbie Silbermann <[email protected]>
2025-05-26 12:12:24 +02:00
56c3ae8191 [release] notify release status via slack (#79409)
This PR adds a step to send Slack notifications of the status of the
release.

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
2025-05-23 17:04:35 +02:00
d8be11a62b [release] use changesets/action for release-candidate (#79039)
Best to be reviewed with "Hide whitespace".

This PR added release candidate handling and used a switch case to
ensure the correct release type was given.

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
Co-authored-by: Zack Tanner <[email protected]>
2025-05-23 15:34:02 +02:00
3fc7d17436 [release] create empty changeset for next when no changeset found during canary release (#79049)
### Why?

When there are no changesets for `next`, the canary release won't be
published even if there are new commits. If this is the case, add an
empty changeset for `next` to let the canary release proceed.

Note that this will result in an empty Changelog and GitHub Release, but
this PR does not cover handling that part.

### Testing Plan

Set env `RELEASE_TYPE=canary` and run `ci:version` locally to see the
result.

---------

Co-authored-by: JJ Kasper <[email protected]>
Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
2025-05-19 19:53:05 +02:00
85c6b3a03d [release] use changesets/action for canary release (#79038)
This PR uses `changesets/action` to handle the canary release. Since the
action creates a Version Packages PR by default, I added a GH Action
that checks if the PR is released from the correct release workflow. It
triple-verifies via the user login (`vercel-release-bot`), PR title
(`Version Packages (canary)`), and a label (`created-by: CI`) to ensure
the opened PR is not trying to spoof.

After the validation, the PR bypasses required checks, is merged into
the canary branch, and proceeds with the rest of the release process.

### Testing Plan

Try running `ci:version` and `ci:publish` locally, and handle the
release type via env `RELEASE_TYPE`.

Confirmed the CI force merge on
https://github.com/devjiwonchoi/lab-releases/pull/13

---------

Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
2025-05-19 19:48:41 +02:00