-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rewrite publish pipeline to use Melos (#344)
- Loading branch information
1 parent
b147aa9
commit a2e4779
Showing
4 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Changelog | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install FVM | ||
shell: bash | ||
run: | | ||
curl -fsSL https://fvm.app/install.sh | bash | ||
fvm use stable --force | ||
- uses: kuhnroyal/flutter-fvm-config-action@v2 | ||
id: fvm-config-action | ||
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | ||
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | ||
|
||
- name: Flutter version | ||
shell: bash | ||
run: flutter --version | ||
|
||
- name: Setup Melos | ||
uses: bluefireteam/melos-action@v3 | ||
|
||
- name: Run melos version | ||
run: melos run fix | ||
|
||
- name: Run melos version | ||
run: melos version --yes | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: 'chore: version packages' | ||
title: 'chore: version packages' | ||
body: 'This PR was opened by the changelog GitHub Actions workflow' | ||
branch: 'create-pull-request/package-versions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters