Skip to content

JoeCMorgan/lerna-get-version-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lerna-get-version-action

This GitHub Action retrieves the version from the lerna.json file and sets the version in the lerna-version output value usable in your workflow file.

Example

To use this action in your project, use the following:

      - name: get-lerna-version
        id: lerna-version
        uses: saulonunesdev/[email protected]

The Action sets an output variable called lerna-version which can be used in a following step by using ${{ steps.lerna-version.outputs.lerna-version}}.

If you are using a monorepo or otherwise have some packages in a subdirectory of your repo, add the path to the lerna.json as a parameter:

      - name: get-lerna-version
        id: lerna-version
        uses: saulonunesdev/[email protected]
        with:
          path: packages/<yourpackage>

Forked from https://github.com/saulonunesdev/lerna-get-version-action, Based on: https://github.com/martinbeentjes/npm-get-version-action

About

Github Action for Retrieving Version from lerna.json

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 69.0%
  • Dockerfile 31.0%