Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.56 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.56 KB

Build MAM

GitHub Action to build MAM based project.

Inputs

token

Required Github personal access token.

package

Required Path to your package in global MAM scope.

modules

Optional Paths to your modules that you want to build reative to package. By default builds package as module.

meta

Optional Paths to dependent module and namespace repositories. They will be loaded before build.

Example usage

    - name: Build app
      uses: hyoo-ru/mam_build@master2
      with:
        package: 'piterjs'
        modules: 'app intro'

Two modules $piterjs_app and $piterjs_intro will be built.

    - name: Build app
      uses: hyoo-ru/mam_build@master2
      with:
        package: 'piterjs/app'

The $piterjs_app module will be built.

    - name: Build app
      uses: hyoo-ru/mam_build@master2
      with:
        token: ${{ secrets.GH_PAT }}
        package: 'my/counter'
        meta: |
          my https://github.com/githubuser/mam_my

The $my_counter module will be built. Before the build, the repository https://github.com/githubuser/mam_my will be cloned at the path mam/my, which contains my.meta.tree. It contains links to modules used by $my_counter.

Full workflow example

Build with publish to NPM

More examples