Skip to content

Commit

Permalink
chore: Fixed Readme and Bash File
Browse files Browse the repository at this point in the history
  • Loading branch information
saulonunesdev committed May 31, 2020
1 parent 9d1e9f0 commit 646878d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

FROM alpine:3.10

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# lerna-get-version-action
Github Action for Retrieving Version from lerna.json

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.

Expand All @@ -8,11 +7,11 @@ This GitHub Action retrieves the version from the lerna.json file and sets the v
To use this action in your project, use the following:

```yaml
- name: get-lerna-version
id: lerna-version
uses: saulonunesdev/lerna-get-version-action@master
- name: get-npm-version
id: package-version
uses: saulonunesdev/lerna-get-version-action@master
```
The Action sets an output variable called `current-version` which can be used in a following step by using `${{ steps.package-version.outputs.lerna-version}}`.
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}}`.

Based on: https://github.com/martinbeentjes/npm-get-version-action
1 change: 0 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#!/bin/sh -l

LERNA_VERSION=$(grep -m1 version lerna.json | awk -F: '{ print $2 }' | sed 's/[", ]//g')
Expand Down

0 comments on commit 646878d

Please sign in to comment.