A github command that creates a github release.
Type: object literal
Type: string
Type: string
Type: string
Type: boolean
Default: false
Use true
to mark the created release as stable.
Type: string
Type: string
Type: array
An array of object literals where each object is an asset to upload to the release.
鈩癸笍 聽 GithubHttpCommand options are also applicable.
const { GithubCreateReleaseCommand } = require("@abstracter/atomic-release/commands");
const command = new GithubCreateReleaseCommand({
owner: "abstracter-io",
repo: "atomic-release",
tagName: "v2.0.1",
isStable: true,
name: "RELEASE v2.0.1",
body: "***This is SPARTA***",
headers: {
Authorization: "token [PERSONAL ACCESS TOKEN]",
},
assets: [
{ absoluteFilePath: "/home/rick/dev/package.json" },
{ absoluteFilePath: "/home/rick/dev/build.json", label: "..." },
{ absoluteFilePath: "/home/rick/dev/package.json", name: "custom name" },
],
});