Skip to content

GitHub action that extracts the version from package.json

License

Notifications You must be signed in to change notification settings

fxtr/ga-npm-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ga-npm-version

Based on https://github.com/Saionaro/extract-package-version Allows you to get the npm version of the package in your Github Actions workflow

Usage

Outputs

  • version: The version of current NPM package

Example workflow - get NPM version

on: push

name: Create Build

jobs:
  build:
    name: Create Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@master

      - name: Extract version
        id: extract_version
        uses: @fxtr/[email protected]
      # From now you can access version
      - name: Print version
        run: echo ${{ steps.extract_version.outputs.version }}

About

GitHub action that extracts the version from package.json

Resources

License

Stars

Watchers

Forks

Packages

No packages published