Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.11 KB

README.md

File metadata and controls

53 lines (40 loc) · 2.11 KB

@iam1337/create-unitypackage

semantic-release plugin to create a unitypackage. Based on unitypackage npm package.

⚙ Release npm latest version semantic-release: angular

Step Description
verifyConditions Verify the packageRoot, projectRoot and output options configuration.
prepare Сreation unitypackage file.

Install

$ npm i @iam1337/create-unitypackage

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    ["@iam1337/create-unitypackage", {
      "packageRoot": "Assets/Package",
      "projectRoot": "./",
      "output": "Package.unitypackage"
    }],
    ["@semantic-release/github", {
      "assets": [
        {"path": "Package.unitypackage", "label": "Package v${nextRelease.version}"}
      ]
    }]
  ]
}

Configuration

Options

Options Description Default
packageRoot Path to the directory you want to archive to unitypackage inside the Assets directory. -
projectRoot Unity project directory. ./
output Output unitypackage path. Must end with .unitypackage. -

Note: The packageRoot directory must have own .meta file.