Create Release(s) #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: Create Release(s) | |
on: | |
workflow_dispatch: | |
inputs: | |
version_parameters: | |
description: 'Parameters to pass to "melos version"' | |
required: true | |
default: " " | |
type: choice | |
options: | |
- "--" | |
- "--prerelease" | |
- "--graduate" | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
fetch-depth: 0 | |
- name: Setup git | |
run: | | |
git config user.name "Damien Wise" | |
git config user.email "[email protected]" | |
- uses: subosito/flutter-action@v2 | |
- uses: bluefireteam/melos-action@v2 | |
- name: Create the new version(s) | |
run: melos version --yes ${{ inputs.version_parameters }} | |
- name: Push created version commit | |
run: git push | |
- name: Push modified tags | |
run: git push --tags |