From adb1ec56f3107603dc2dcf12ce56301ae64569f8 Mon Sep 17 00:00:00 2001 From: JoC0de <53140583+JoC0de@users.noreply.github.com> Date: Sun, 22 Dec 2024 22:22:58 +0100 Subject: [PATCH] update version to 4.2.0 + document how to release a new version --- CONTRIBUTING.md | 17 +++++++++++++++++ src/NuGetForUnity/Editor/Ui/NugetPreferences.cs | 2 +- src/NuGetForUnity/package.json | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index af33db8f..6fe0e7a3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -111,6 +111,23 @@ We are using pull requests to add new features, no direct commits to master. To - The [GitHub Action](.github/workflows/main.yml) also creates a pre-release `.unitypackage` from the build to be able to import it in any Unity project without needing to wait for a new official release. - If everything is working and fits our [Code Style](#code-style) we will merge the pull request. When merging please use the `Squash and merge` merge strategy to keep the commit history clean. +### Steps to release a new version + +1. Update Version Information: + +- Edit `src/NuGetForUnity/package.json` to update the `"version"` field. +- Edit `src/NuGetForUnity/Editor/Ui/NugetPreferences.cs` to update the `NuGetForUnityVersion` constant. + +2. Create a Release (after merging the version changes): + +- Go to the GitHub Releases page. +- Click "Draft a new release" and use the auto-generated release notes. + +3. Upload Unity Package: + +- Download the generated `unitypackage` from the GitHub Action. +- Manually upload it to the release page. + ### Development Environment Setup You can use any version of Unity to develop NuGetForUnity but you should only use features available in Unity version 2018.3+. The easiest way to edit and test code using a newer Unity version is by installing NuGetForUnity as a local package like in [TestProjects/ImportAndUseNuGetPackages](src/TestProjects/ImportAndUseNuGetPackages). diff --git a/src/NuGetForUnity/Editor/Ui/NugetPreferences.cs b/src/NuGetForUnity/Editor/Ui/NugetPreferences.cs index 3a56f05c..0b143fd4 100644 --- a/src/NuGetForUnity/Editor/Ui/NugetPreferences.cs +++ b/src/NuGetForUnity/Editor/Ui/NugetPreferences.cs @@ -35,7 +35,7 @@ public class NugetPreferences : SettingsProvider /// /// The current version of NuGet for Unity. /// - public const string NuGetForUnityVersion = "4.1.1"; + public const string NuGetForUnityVersion = "4.2.0"; private const float LabelPading = 5; diff --git a/src/NuGetForUnity/package.json b/src/NuGetForUnity/package.json index 3cd2ca40..f2afd5a6 100644 --- a/src/NuGetForUnity/package.json +++ b/src/NuGetForUnity/package.json @@ -1,7 +1,7 @@ { "name": "com.github-glitchenzo.nugetforunity", "displayName": "NuGetForUnity", - "version": "4.1.1", + "version": "4.2.0", "description": "A NuGet Package Manager for Unity", "unity": "2018.4", "keywords": [