Skip to content
play

GitHub Action

Setup Metanorma

v1 Latest version

Setup Metanorma

play

Setup Metanorma

Set up metanorma toolchain and add the command-line tools to the PATH

Installation

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

              

- name: Setup Metanorma

uses: actions-mn/setup@v1

Learn more about this action in actions-mn/setup

Choose a version

actions-mn/setup

test

This action sets up a metanorma environment for use in actions by:

  • optionally installing a version of metanorma and adding to PATH. The action will fail if no matching versions are found.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@master
- uses: actions-mn/setup@v1

With specific version:

jobs:
  build:
    runs-on: matrix.os
    strategy:
      matrix:
        os: [ windows-latest, macos-latest, ubuntu-latest ]
    name: Compule on ${{ matrix.os }}
    steps:
      - uses: actions/checkout@master
      - uses: actions-mn/setup@v1
      - name: Compile document
        run: metanorma document.adoc

Maintainer notes

  1. yes, node_modules need to be commited(
  2. during development node_modules may be modified but devDependencies should not be commited, be careful

License

The scripts and documentation in this project are released under the MIT License