-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (52 loc) · 1.26 KB
/
release.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
name: Publish
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'
jobs:
check:
name: Run checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install Tools
run: dart pub global activate melos
- name: Bootstrap Workspace
run: melos bootstrap
- name: Install dependencies
run: melos get
- name: Check versions
run: melos test
publish_core:
needs: check
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: packages/client_core
publish_clients:
needs:
- check
- publish_core
strategy:
matrix:
package:
- packages/client_search
- packages/client_insights
- packages/client_recommend
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: ${{ matrix.package }}
publish_algoliasearch:
needs:
- check
- publish_core
- publish_clients
permissions:
id-token: write
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: packages/algoliasearch