-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (50 loc) · 1.45 KB
/
split-monorepo.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
name: Split Monorepo
on:
push:
branches:
- main
tags:
- '*'
jobs:
split_monorepo:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: [
'access-definitions',
'dql',
'extra',
'paths',
'queries',
'jsonapi'
]
steps:
- uses: actions/checkout@v4
-
if: "!startsWith(github.ref, 'refs/tags/')"
name: Monorepo Split of ${{ matrix.package }}
uses: symplify/github-action-monorepo-split@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}
with:
package_directory: 'packages/${{ matrix.package }}'
repository_organization: 'demos-europe'
repository_name: 'edt-${{ matrix.package }}'
user_name: "GitHub Action"
user_email: "action@github.com"
branch: "main"
-
if: "startsWith(github.ref, 'refs/tags/')"
name: Monorepo Tagged Split of ${{ matrix.package }}
uses: symplify/github-action-monorepo-split@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }}
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'packages/${{ matrix.package }}'
repository_organization: 'demos-europe'
repository_name: 'edt-${{ matrix.package }}'
user_name: "GitHub Action"
user_email: "action@github.com"
branch: "main"