Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

NodeJS Create Release

Actions
Creates a release if not already created
v0.0.3
Star (3)

NodeJS Create Release

Create a release on GitHub - GitHub Action

This action finds or creates a release, so your workflow can access it.

Dependency Status License Issues

Master Build Master Coverage Master Version

Development Build Development Coverage Development Version

Code maintainability Code issues Code Technical Debt

Main Language Languages Code Size Repo-Size

Usage

    ...
    - name: nodejs project information
      id: projectinfo
      uses: gregoranders/nodejs-project-info@master
    - name: create release
      id: createrelease
      uses: gregoranders/nodejs-create-release@v0.0.3
      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 }}
    ...

Inputs/Outputs

inputs:
  tag:
    description: 'Tag name'
    required: true
  name:
    description: 'Release name'
    required: false
    default: '${tag} Release'
  body:
    description: 'Release body'
    required: false
    default: '${name}'
  draft:
    description: '`true` for a draft, `false` to publish'
    required: false
    default: true
  prerelease:
    description: '`true` for a prerelease, `false` for a full release'
    required: false
    default: false
  target:
    description: 'Release target (branch name or commit id)'
    required: false
    default: 'master'
outputs:
  id:
    description: 'Release Id'
  url:
    description: 'Release Url'
  upload_url:
    description: 'Release Upload Url'

Development

Clone repository

git clone https://github.com/gregoranders/nodejs-create-release

Install dependencies

npm install

Build

npm run build

Testing

Test using Jest

npm test

Run

npm start

Clear

npm run clear

NodeJS Create Release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Creates a release if not already created
v0.0.3

NodeJS Create Release is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.