Node.JS Upload Asset
GitHub Action written in TypeScript
Upload asset to release - GitHub Action
This action uploads an asset to a release, 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
id: createrelease
uses: gregoranders/nodejs-create-release@v0.0.21
env:
GITHUB_TOKEN: $
with:
tag: v$
name: $ - $ Release
target: $
- name: upload asset
id: uploadasset
uses: gregoranders/nodejs-upload-asset@v0.0.21
env:
GITHUB_TOKEN: $
with:
id: $
path: package.json
name: '$ - $'
...
Inputs/Outputs
inputs:
id:
description: 'Release Id'
required: true
path:
description: 'Release Asset Path'
required: true
label:
description: 'Release Asset Label'
required: false
default: '${name}'
name:
description: 'Release Asset File Name'
required: false
default: '${path}'
outputs:
id:
description: 'Release Id'
url:
description: 'Release Url'