actions-marketplace-validations/Read & Modify of package.json
Read and modify the contents of package.json.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | Your GITHUB_TOKEN | no | ${{ github.token }} |
| path | The path of the target file "package.json". | no | package.json |
| data | json data for changing "package.json". | no | — |
| rename | Used to change "name" data in "package.json". | no | — |
| version | Used to change "`version`" data in "package.json". | no | — |
| description | Used to change "`description`" data in "package.json". | no | — |
| unset | delete "Object" nested values | no | — |
Outputs
| name | description |
|---|---|
| name | name field in package.json, The name of the package. |
| version | version field in package.json, Version must be parseable by node-semver, which is bundled with npm as a dependency. |
| description | description field in package.json, This helps people discover your package, as it's listed in 'npm search'. |
| author | author field in package.json |
| homepage | homepage field in package.json, The url to the project homepage. |
| license | license field in package.json, You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it. |
| private | private field in package.json |
| keywords | keywords field in package.json, This helps people discover your package as it's listed in 'npm search'. |
| repository | keywords field in package.json, Specify the place where your code lives. This is helpful for people who want to contribute. |
| os | os field in package.json, Specify which operating systems your module will run on. |
| cpu | cpu field in package.json, Specify that your code only runs on certain cpu architectures. |