Skip to content

Iam1337/create-unitypackage

Repository files navigation

@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.