Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nyaa8/package-version

📦 A GitHub Action to extract package version from package.json to an environment variable
https://github.com/nyaa8/package-version

environment-variables github-actions hacktoberfest node

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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

## 📖 Docs (kind of)

```yaml
- 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](https://github.com/actions/typescript-action) template*