Skip to content

An environment with Melos activated for use in GitHub Actions.

License

Notifications You must be signed in to change notification settings

bluefireteam/melos-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc5c5b5 · Feb 13, 2022

History

14 Commits
Feb 1, 2022
Feb 13, 2022
Feb 13, 2022
Feb 7, 2022

Repository files navigation

melos-action

Activates Melos for your GitHub workflow.

Usage

The melos-action needs to have either dart or flutter on the path before it can activate melos.

With Flutter

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v1

With Dart

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: bluefireteam/melos-action@v1

Arguments

You can set a version constraint for the melos version if you don't want the latest version (default).

Simply adding the version, like in the example below, will guarantee that exactly the specified version is activated.

You can also use all range constraints that exist for pub. For example '^1.0.0' would allow any version from 1.0.0 to 2.0.0 (but not including 2.0.0). If you want an even tighter restriction you can define the version like this '>=1.2.0 < 1.3.0' which would allow any version between 1.2.0 (included) to 1.3.0 (excluded).

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v1
  with:
    melos-version: '1.2.0'

By default melos bootstrap is run by the action, if you don't want it to run set run-bootstrap: false.

steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v1
  with:
    run-bootstrap: false

About

An environment with Melos activated for use in GitHub Actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published