Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Monorepo Split

Actions
Split monorepo packages to many repositories
1.0.1
Star (105)

GitHub Action for Monorepo Split

Based heavily on cpina/github-action-push-to-another-repository, with focus on automated monorepo splits.

Example

Split Packages With Tag

name: 'Monorepo Split With Tag'

on:
    push:
        branches:
            - main

jobs:
    monorepo_split_test_with_tag:
        runs-on: ubuntu-latest

        steps:
            -
                uses: actions/checkout@v2
                # this is required for "WyriHaximus/github-action-get-previous-tag" workflow
                # see https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
                with:
                    fetch-depth: 0

            # see https://github.com/WyriHaximus/github-action-get-previous-tag
            -
                id: previous_tag
                uses: "WyriHaximus/github-action-get-previous-tag@master"

            -
                uses: "symplify/monorepo-split-github-action@1"
                env:
                    GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
                with:
                    # ↓ split "packages/easy-coding-standard" directory
                    package-directory: 'packages/easy-coding-standard'

                    # ↓ into https://github.com/symplify/easy-coding-standard repository
                    split-repository-organization: 'symplify'
                    split-repository-name: 'easy-coding-standard'

                    tag: ${{ steps.previous_tag.outputs.tag }}

                    # ↓ the user signed under the split commit
                    user-name: "kaizen-ci"
                    user-email: "info@kaizen-ci.org"

Monorepo Split is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Split monorepo packages to many repositories
1.0.1

Monorepo Split is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.