Skip to content

chore: Monorepo wip

chore: Monorepo wip #7

Workflow file for this run

name: 'Packages Split'
on:
push:
branches:
- 3.x
tags:
- '*'
env:
GITHUB_TOKEN: ${{ secrets.SUPER_ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'AssetManager'
split_repository: 'asset-manager'
- local_path: 'ColorManager'
split_repository: 'color-manager'
- local_path: 'Contracts'
split_repository: 'contracts'
- local_path: 'Core'
split_repository: 'core'
- local_path: 'Laravel'
split_repository: 'laravel'
- local_path: 'MenuManager'
split_repository: 'menu-manager'
- local_path: 'Support'
split_repository: 'support'
- local_path: 'UI'
split_repository: 'ui'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
package_directory: 'src/${{ matrix.package.local_path }}'
repository_organization: 'moonshine-software'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "moonshine-ci"
user_email: "[email protected]"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: 'src/${{ matrix.package.local_path }}'
repository_organization: 'moonshine-software'
repository_name: '${{ matrix.package.split_repository }}'
user_name: "lee-to"
user_email: "[email protected]"