melos version #2
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
name: "melos version" | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
melos_version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: stable | |
cache: true | |
- name: show flutter version | |
run: flutter doctor -v | |
- name: Install melos | |
run: flutter pub global activate melos | |
- name: Install dependencies | |
run: melos bootstrap | |
- name: Version packages | |
run: melos version --yes | |
- name: Setup git by gh | |
run: gh auth login --with-token < ${{ secrets.GITHUB_TOKEN }} | |
- name: resign the changes | |
run: git commit --amend --signoff -S | |
- name: Show git log | |
run: git log -1 |