Skip to content
anchor

GitHub Action

Build MAM

v1.0.2 Latest version

Build MAM

anchor

Build MAM

GitHub Action to build MAM based project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build MAM

uses: hyoo-ru/mam_build@v1.0.2

Learn more about this action in hyoo-ru/mam_build

Choose a version

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