Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new release flow - Part 1 #2143

Merged
merged 7 commits into from
Jul 8, 2024
Merged

Conversation

varadarajan-tw
Copy link
Contributor

@varadarajan-tw varadarajan-tw commented Jul 8, 2024

This is the first PR in an attempt to introduce new release workflow for our deploys after the recent org level github permission changes.

This PR adds an event_dispatch workflow called version packages that can be triggered via GH CLI or API. The version packages workflow runs lerna version, commits the package version changes to branch and creates a release PR. Here is an example PR created.

Merging the version PR to main kicks off the publish workflow that uses lerna publish from-package instead of lerna publish from-git. The from-package command reads packages versions from package.json of all packages and publishes them if the version has changed.

from-git relies on tags to publish new version. Since we'll lose the tags in from-package workflow, new steps have been added to the release workflow to autogenerate package tags and push to main.

Testing

Tested the relase workflow on this branch.
Example PR created - #2139

For further testing and improvements to our deploy workflow, I would like to merge this to main.

@varadarajan-tw varadarajan-tw marked this pull request as ready for review July 8, 2024 11:19
@varadarajan-tw varadarajan-tw merged commit 93087d2 into main Jul 8, 2024
11 checks passed
@varadarajan-tw varadarajan-tw deleted the new-prod-release-workflow branch July 8, 2024 13:34
@varadarajan-tw varadarajan-tw restored the new-prod-release-workflow branch July 8, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants