Skip to content

get-package-json-version

Actions
get the version in your pacakge.json file
v0.3.2
Latest
Star (3)

Tags

 (1)

package-json-version

This action gets the version number in your package.json for use in other steps.

Inputs

path

The directory your package.json is in. Default ..

Outputs

version

The version in your package.json

Example Usage

on: [push]

jobs:
  print-version:
    runs-on: ubuntu-latest
    name: A job to print the version
    steps:
      - name: checkout repository
        uses: actions/checkout@v3
      - name: test action
        id: get-version
        uses: beaconbrigade/[email protected]
        with:
          path: .
      - name: Print the version
        run: echo "The version was ${{ steps.get-version.outputs.version }}"

get-package-json-version 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

get the version in your pacakge.json file
v0.3.2
Latest

Tags

 (1)

get-package-json-version 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.