generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
59 lines (57 loc) · 1.58 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "dart-action-for-dio"
description: "Use dart write action"
author: "CaiJingLong"
inputs:
github-token:
description: "The GitHub token to use for the action"
required: true
pub-credentials-json:
description: "The pub credentials json"
required: true
do-publish:
description: "Whether to publish the package to pub.dev"
required: false
default: 'true'
do-release:
description: "Whether to release the package to GitHub"
required: false
default: 'true'
runs:
using: composite
steps:
- uses: subosito/flutter-action@v2
name: Install Flutter
with:
channel: "stable"
cache: true
- name: Show Flutter and dart version
run: |
dart --version
flutter --version
shell: bash
- uses: bluefireteam/melos-action@v3
with:
run-bootstrap: false
- name: Install dependencies
run: dart pub get
shell: bash
- name: Check satisfied packages
run: |
dart ./scripts/melos_packages.dart
echo $(cat .melos_packages) >> $GITHUB_ENV
shell: bash
- name: Melos Bootstrap
run: melos bootstrap
shell: bash
- name: Install dependencies
run: dart pub get
working-directory: ${{ github.action_path }}
shell: bash
- name: Run dart
run: dart run "${{ github.action_path }}/bin/main.dart"
shell: bash
env:
PERSON_TOKEN: ${{ inputs.github-token }}
PUB_CREDENTIALS_JSON: ${{ inputs.pub-credentials-json }}
DO_PUBLISH: ${{ inputs.do-publish }}
DO_RELEASE: ${{ inputs.do-release }}