Action for getting information from package.json file
Path to package.json file. ./
by default.
Package name
Package version
Link to npmjs.com package page
Is the package version a release candidate
Available since v1.1
- name: Get package info
id: package
uses: kylejrp/action-nodejs-package-info@v1.2
- name: Get the output
run: |
echo "name: ${{ steps.package.outputs.name }}"
echo "version: ${{ steps.package.outputs.version }}"
echo "npmjs-link: ${{ steps.package.outputs.npmjs-link }}"
echo "is-release-candidate: ${{ steps.package.outputs.is-release-candidate }}"
You will get:
name: @editorjs/editorjs
version: 2.19.0
npmjs-link: https://www.npmjs.com/package/@editorjs/editorjs
is-release-candidate: false