semantic-release plugin to create a unitypackage. Based on unitypackage npm package.
Step | Description |
---|---|
verifyConditions |
Verify the packageRoot , projectRoot and output options configuration. |
prepare |
Сreation unitypackage file. |
$ npm i @iam1337/create-unitypackage
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}"}
]
}]
]
}
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.