Skip to content

📦 A GitHub Action extracting various fields from package.json and exporting them as environment variables

License

Notifications You must be signed in to change notification settings

nyaa8/package-info

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

📦 package-info

A GitHub Action extracting various fields from package.json and exporting them as environment variables

📖 Docs (kind of)

Extracted fields

  • author as PACKAGE_AUTHOR
  • description as PACKAGE_DESCRIPTION
  • license as PACKAGE_LICENSE
  • name as PACKAGE_NAME
  • version as PACKAGE_VERSION

Usage

- uses: nyaayaya/package-info@v1
  with:
    path: 'uwu/package.json' # Optional
    follow-symlinks: 'false' # Optional

And then you can use them, eg. ${{ env.PACKAGE_AUTHOR }} 🎉

Thank you for reading this 🙇🏼‍♀️

About

📦 A GitHub Action extracting various fields from package.json and exporting them as environment variables

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published