Release tooling: Support canary releases#23508
Conversation
|
@JReinhold this seems a bit annoying to remember & have to do. Is this something you could append if not detected? |
shilman
left a comment
There was a problem hiding this comment.
@JReinhold Doesn't this mean that each package is going to have a million dist tags? Can we not do that please?
@ndelangen this is only something you have to manually add now because this PR isn't merged. This PR also changes the default PR template to include this section, so any future PRs will have this section per default. Any existing PRs will not, but I'm thinking that's okay? If you think it's common to create PRs that doesn't use the template, then I'm fine with adding in additional measures to handle it.
@shilman actually it's not possible to publish a package without tag, it will default to |
Yes please! |
|
@shilman I've made the changes so all releases use the same We can remove the two dist tags I've created with this work manually: I can do it or you can, I'll need the npm token though. |
shilman
left a comment
There was a problem hiding this comment.
Thanks for fixing the dist tag!
| run: yarn release:publish --tag canary --verbose | ||
|
|
||
| - name: Replace Pull Request Body | ||
| # TODO: replace with ivangabriele/find-and-replace-pull-request-body@vX when https://github.com/ivangabriele/find-and-replace-pull-request-body/pull/11 has been released |
There was a problem hiding this comment.
This has been released, can you replace and test it out?
There was a problem hiding this comment.
It's been merged, but not released. :( I think they want to write some tests first, before releasing a new version. I'm keeping an eye on it.

What I did
This PR adds support for canary releases.
next, and not the actual branch you want the release for. This is for security reasons.useStoryPreparedhook failing withundefineddata #22631 (comment)<CURRENT_VERSION>-canary-<PR_NUMBER>-<TIMESTAMP>-<COMMIT_SHA>.0, eg.7.1.1-pr-23508-1689802571-5ec8c1c3.0. It's a bit verbose.How to test
You can test this out by reading the documentation in this PR, and then using this branch as a ref when running the workflow, instead of
next. So in the UI you'd choosecanary-release-workflowinstead ofnext, and with the CLI it would be:To test the updating of the PR description you need to add the following to the bottom of your description before triggering the workflow: