This action generates a graph of all Lerna packages in their current version:
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
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.