mirror of
https://github.com/martinbeentjes/npm-get-version-action.git
synced 2025-12-06 07:38:05 +08:00
19 lines
466 B
YAML
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 }}
|