https://github.com/iam1337/create-unitypackage
Semantic-release plugin to create a unitypackage.
https://github.com/iam1337/create-unitypackage
javascript npm semantic-release unity
Last synced: 9 months ago
JSON representation
Semantic-release plugin to create a unitypackage.
- Host: GitHub
- URL: https://github.com/iam1337/create-unitypackage
- Owner: Iam1337
- License: mit
- Created: 2022-01-07T12:05:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T08:40:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T21:40:31.856Z (10 months ago)
- Topics: javascript, npm, semantic-release, unity
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@iam1337/create-unitypackage
- Size: 215 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @iam1337/create-unitypackage
[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to create a [unitypackage](https://docs.unity3d.com/Manual/AssetPackages.html). Based on [unitypackage](https://github.com/pCYSl5EDgo/unitypackage) npm package.
[](https://github.com/Iam1337/create-unitypackage/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/@iam1337/create-unitypackage)
[](https://github.com/Iam1337/create-unitypackage/blob/master/LICENSE)
[](https://github.com/semantic-release/semantic-release)
| Step | Description |
|--------------------|-------------|
| `verifyConditions` | Verify the `packageRoot`, `projectRoot` and `output` options configuration. |
| `prepare` | Сreation unitypackage file. |
## Install
```bash
$ npm i @iam1337/create-unitypackage
```
## Usage
The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):
```json
{
"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.