Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
saionaro committed Mar 5, 2020
1 parent 7933f96 commit 996dfab
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# extract-package-version

Allows you to get the npm version of the package in your Github Actions workflow

## Usage

### Outputs

- `version`: The version of current NPM package

### Example workflow - get NPM version

```yaml
on: push

name: Create Build

jobs:
build:
name: Create Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Extract version
id: extract_version
uses: Saionaro/extract-package-version@latest
# From now you can access version
- name: Print version
run: echo ${{ steps.extract_version.outputs.version }}
```

0 comments on commit 996dfab

Please sign in to comment.