Skip to content

Get package info

Actions
Action for getting information from package.json file
v1.1
Latest
Star (4)

Get node package info

Action for getting information from package.json file

Inputs

path

Path to package.json file. ./ by default.

Outputs

name

Package name

version

Package version

npmjs-link

Link to npmjs.com package page

is-release-candidate

Is the package version a release candidate

Available since v1.1

Example usage

- 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.

About

Action for getting information from package.json file
v1.1
Latest

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.