-
Notifications
You must be signed in to change notification settings - Fork 0
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
ci: add GitHub Actions workflow for automated release pull requests #115
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for creating this! Iβve left a few comments! π
workflow_dispatch: | ||
inputs: | ||
scope: | ||
description: "Package name to release (e.g., altfire_authenticator)" | ||
required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are cases where multiple packages are updated simultaneously like this, so making it optional might be a good idea π
env: | ||
MELOS_ALLOW_DIRTY: "true" | ||
run: | | ||
melos version --patch --no-private --yes --scope="${{ github.event.inputs.scope }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since melos version can determine the version increment automatically, specifying --patch is unnecessary.
Iβll remove it.ππ»
id: set-output | ||
run: | | ||
BRANCH_NAME="release/${{ github.event.inputs.scope }}-${{ env.version }}" | ||
echo "branch=$BRANCH_NAME" >> "$GITHUB_ENV" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π Issue Link
related: #78
π What I did
βοΈ What I didn't do
β Verification
Screenshots
Additional Information
First, I created a workflow that automatically generates a pull request using the Melos version.
Separately, I will create another workflow to automatically publish to pub.dev.