Skip to content

chore: Update README.adoc #486

chore: Update README.adoc

chore: Update README.adoc #486

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"