Skip to content

Commit

Permalink
GitHub Actionsのワークフローで 適切なmelosバージョンを利用するよう修正 (#161)
Browse files Browse the repository at this point in the history
* docs: add melos installization process

* fix: [ci] melos version spec

* part revert: 3f45879: docs: add melos installization process

* docs-fix: set whitespace from 2 to 4
4 was default

* fix: [ci] pubspec path
  • Loading branch information
YumNumm committed Mar 12, 2024
1 parent 2fede9b commit 555a697
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/actions/setup-application-runtime/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runs:
- name: Setup melos
run: |
ln -s $FLUTTER_ROOT .fvm/flutter_sdk
dart pub global activate melos
MELOS_VERSION=$(cat pubspec.lock | yq ".packages.melos.version" -r)
dart pub global activate melos $MELOS_VERSION
melos bootstrap
shell: bash
11 changes: 10 additions & 1 deletion docs/GET_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
- [Xcode]
- Enable the [fvm] command.
- Enable the [melos] command.
- Please install the [yq] command if it is not already installed. The yq command is used to parse the `pubspec.lock` file to extract the version of the melos command.
- Then, run the following command to globally activate the melos command.

```shell
MELOS_VERSION=$(cat pubspec.lock | yq ".packages.melos.version" -r)
fvm dart pub global activate melos $MELOS_VERSION
```

- Enable the [mason_cli] command.

### Set up Flutter SDK
Expand Down Expand Up @@ -38,7 +46,6 @@ Please check:
- `.vscode/launch.json` for [Visual Studio Code].
- `.idea/runConfigurations/~.xml` for [IntelliJ IDEA] or [Android Studio].


<!-- Links -->

[IntelliJ IDEA]: https://www.jetbrains.com/idea/
Expand All @@ -54,3 +61,5 @@ Please check:
[melos]: https://melos.invertase.dev/

[mason_cli]: https://pub.dev/packages/mason_cli

[yq]: https://github.com/mikefarah/yq

0 comments on commit 555a697

Please sign in to comment.