/lerna-graph-action

Github action to generate a lerna graph

Primary LanguageTypeScriptMIT LicenseMIT

Lerna Graph Action

This action generates a graph of all Lerna packages in their current version:

Lerna Graph


Usage:

See parametes in action.yml

Persist the graph on Github artifacts to view them later

steps:
- uses: actions/checkout@v2

- run: mkdir -p graph

- name: Lerna Graph
- uses: lerdajs/lerna-graph-action
  with: 
    rootPath: .
    path: graph/image.png

- uses: actions/upload-artifact@v2
  with:
    name: lerna graph
    path: graph/image.png

FAQ

Do I need to use Lerna for this action?

This action can work with any repository that is compliant with Lerna structure (i.e. multiple package.json files). You do not have to use Lerna to install or publish the packages. The only requirement is have a lerna.json file that marks your packages folders.