Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Repository files navigation

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-latestname: A job to print the versionsteps:
- name: checkout repositoryuses: actions/checkout@v3
- name: test actionid: get-versionuses: beaconbrigade/package-json-version@v0.3with:
path: .
- name: Print the versionrun: echo "The version was ${{ steps.get-version.outputs.version }}"

About

Github action to retrieve the version number in your package.json file for use in other actions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages