https://github.com/codex-team/action-nodejs-package-info
Action for getting information from package.json file
https://github.com/codex-team/action-nodejs-package-info
action codex github-actions nodejs package package-json
Last synced: about 1 year ago
JSON representation
Action for getting information from package.json file
- Host: GitHub
- URL: https://github.com/codex-team/action-nodejs-package-info
- Owner: codex-team
- License: mit
- Created: 2020-11-16T14:24:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T08:27:20.000Z (over 3 years ago)
- Last Synced: 2024-10-14T13:02:09.776Z (over 1 year ago)
- Topics: action, codex, github-actions, nodejs, package, package-json
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get node package info
Action for getting information from package.json file
## Inputs
### `path`
Path to package.json file. `./` by default.
## Outputs
### `name`
Package name
### `version`
Package version
### `npmjs-link`
Link to npmjs.com package page
### `is-release-candidate`
Is the package version a release candidate
Available since v1.1
## Example usage
```
- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1.1
- name: Get the output
run: |
echo "name: ${{ steps.package.outputs.name }}"
echo "version: ${{ steps.package.outputs.version }}"
echo "npmjs-link: ${{ steps.package.outputs.npmjs-link }}"
echo "is-release-candidate: ${{ steps.package.outputs.is-release-candidate }}"
```
You will get:
```
name: @editorjs/editorjs
version: 2.19.0
npmjs-link: https://www.npmjs.com/package/@editorjs/editorjs
is-release-candidate: false
```