Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nyaa8/package-version
- Owner: nyaa8
- License: bsd-2-clause
- Created: 2020-05-27T17:06:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T20:44:33.000Z (almost 2 years ago)
- Last Synced: 2024-10-26T11:36:25.566Z (3 months ago)
- Topics: environment-variables, github-actions, hacktoberfest, node
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/package-version
- Size: 313 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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*