Skip to content

gregoranders/nodejs-upload-asset

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.JS Upload Asset

Upload asset to release - GitHub Action

This action uploads an asset to a release, so your workflow can access it.

License Issues

Code maintainability Code issues Code Technical Debt

Main Language Languages Code Size Repository Size

Features

  • TypeScript
  • Jest Unit Tests with Code Coverage
  • GitHub CI Integration (feature, development, master, release)
  • Code Quality via Code Climate
GitHub Coveralls
Release Build Release Version
Master Build Master Coverage Master Version
Development Build Test Coverage Development Version

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: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag: v${{ steps.projectinfo.outputs.version }}
        name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }} Release
        target: ${{ github.ref }}
    - name: upload asset
      id: uploadasset
      uses: gregoranders/nodejs-upload-asset@v0.0.21
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        id: ${{ steps.createrelease.outputs.id }}
        path: package.json
        name: '${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}'
    ...

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'