NodeJS Create Release
ActionsTags
(2)GitHub Action written in TypeScript.
Create a release on GitHub GitHub Action.
...
- name: nodejs project information
id: projectinfo
uses: gregoranders/nodejs-project-info
- name: create release action
id: createrelease
uses: gregoranders/nodejs-create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
with:
tag: v${{ steps.projectinfo.outputs.version }}
name: ${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}
target: ${{ github.ref }}
...
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: false
prerelease:
description: '`true` for a prerelease, `false` to 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'
git clone https://github.com/gregoranders/nodejs-create-release
npm install
npm run build
Test using Jest
npm test
npm start
npm run clear
Resources
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.