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 #2140

Closed
wants to merge 6 commits into from
Closed

Conversation

varadarajan-tw
Copy link
Contributor

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

With recent changes to github organization rules, we cannot use the old workflow which allowed segment engineers push directly to main branch.

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 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 reelase 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 force-pushed the new-prod-release-workflow branch 4 times, most recently from cacc349 to a286e61 Compare July 5, 2024 14:10
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.

1 participant