Get package info
ActionsTags
(2)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: codex-team/action-nodejs-package-info@v1.1
- 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
Get package info is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.