Node.JS Project Information
GitHub Action written in TypeScript
Provide package.json - GitHub Action
This action provides the name, version and the content of package.json, so your workflow can access it.
Features
- TypeScript
- Jest Unit Tests with Code Coverage
- GitHub CI Integration (feature, development, master, release)
- Code Quality via Code Climate
| GitHub | Coveralls | | | —————————————————————- | ————————————————————————– | —————————————————————————- | | | | | | | | | | | | |
Usage
...
- name: nodejs project information
id: projectinfo
uses: gregoranders/nodejs-project-info@v0.0.21
- name: create release action
id: createrelease
uses: gregoranders/nodejs-create-release@v0.0.21
env:
GITHUB_TOKEN: $
PACKAGE_JSON: $
with:
tag: v$
name: $ - $ Release
target: $
...
Inputs/Outputs
inputs:
path:
description: 'Path to package.json'
required: false
default: './package.json'
outputs:
context:
description: 'Serialized package.json'
name:
description: 'Project Name'
version:
description: 'Project Version'