Skip to content

Commit

Permalink
feat: add publish dry run earthly script (#272)
Browse files Browse the repository at this point in the history
* chore: add publish dry run earthly script

* chore: typo in logs
  • Loading branch information
dtscalac authored Jun 27, 2024
1 parent 735879f commit 696739f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions earthly/flutter/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ FORMAT:
RUN flutter format --set-exit-if-changed .
END

# Dry-runs the publish script for publishable packages.
PUBLISH_DRY_RUN:
FUNCTION

IF [ -f melos.yaml ]
RUN echo "Running melos publish --dry-run"
RUN melos publish --dry-run --yes
ELSE
RUN echo "Running dart pub publish --dry-run"
RUN dart pub publish --dry-run
END


# Runs unit tests.
UNIT_TESTS:
FUNCTION
Expand Down

0 comments on commit 696739f

Please sign in to comment.