You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Extract Package Version
v1.0.3
Allows you to get the npm version of the package in your Github Actions workflow
version
: The version of current NPM package
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@v1.0.3
# From now you can access version
- name: Print version
run: echo ${{ steps.extract_version.outputs.version }}