Files
npm-get-version-action/action.yml
Martin Beentjes 1b2f8b744b Update action.yml
2020-07-13 13:17:13 +02:00

19 lines
466 B
YAML

name: 'Get current package version'
description: 'Get the current version of the npm package'
branding:
color: 'gray-dark'
icon: 'align-center'
inputs:
path:
required: false
default: '.'
description: 'Path to package.json file (directories only), e.g. packages/mypackage/'
outputs:
current-version:
description: 'Current version defined in the package.json file'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.path }}