Skip to content

SaTu07/npm-get-version-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

npm-get-version-action

This GitHub Action retrieves the package version from the package.json file and sets the version in the current-version output value usable in your workflow file.

Example

To use this action in your project, use the following:

 - name: get-npm-version
   uses: martinbeentjes/npm-get-version-action@v1

The Action sets an output variable called current-version which can be used in a following step by using `${{ steps.get-npm-version.outputs.current-version}}``.

About

This Action scans for a package.json file and reads the version number from that.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 65.8%
  • Dockerfile 34.2%