Skip to content

📦 A GitHub Action to extract package version from package.json to an environment variable

License

Notifications You must be signed in to change notification settings

nyaa8/package-version

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-version

An Action to extract package version from package.json and export it to an environment variable

📖 Docs (kind of)

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

And then you can use ${{ env.PACKAGE_VERSION }} 🎉

Thank you for reading this 🙇🏼‍♀️

Made using heavily modified actions/typescript-action template