Skip to content
activity

GitHub Action

Extract current lerna version

v1.3 Latest version

Extract current lerna version

activity

Extract current lerna version

Extract the current version in lerna.json file

Installation

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

              

- name: Extract current lerna version

uses: vlmduy/[email protected]

Learn more about this action in vlmduy/extract-lerna-version

Choose a version

extract-lerna-version-action

This GitHub Action is used to extract 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: extract_lerna_version
        id: lerna-version
        uses: vlmduy/extract-lerna-version-action@v1

This action extract and export the current version in lerna.json file to variable called lerna-current-version. This could be used by other steps as ${{ steps.lerna-version.outputs.lerna-current-version}}.