Skip to content

Commit

Permalink
feat: Support automatic versioning and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 9, 2023
1 parent 25c6f2a commit 637df20
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,29 @@ runs:
- name: Activate melos
run: dart pub global activate melos "${{ inputs.melos-version }}"
shell: bash
- name: Run bootstrap
if: ${{ inputs.run-bootstrap }} == 'true'
- name: Run melos bootstrap
if: ${{ inputs.run-bootstrap == 'true' }}
run: dart pub global run melos bootstrap
shell: bash
- name: Add melos to PATH
run: command -v melos || echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
shell: bash
- name: Run melos version
if: ${{ inputs.publish == 'true' }}
run: melos version
shell: bash
- name: Run melos publish --dry-run
if: ${{ inputs.publish == 'true' }}
run: melos publish --dry-run
shell: bash
- name: Run melos publish --no-dry-run
if: ${{ inputs.publish == 'true' }}
run: melos publish --dry-run # Change to --no-dry-run once it is certain it works
shell: bash
- name: Create Pull Request with changes
if: ${{ inputs.publish == 'true' }}
uses: peter-evans/create-pull-request@v5
with:
title: 'chore(release): Publish packages'
body: 'Updated CHANGELOG.md and pubspec.yaml for all packages after release to pub.dev'
branch: release

0 comments on commit 637df20

Please sign in to comment.