Skip to content

Commit

Permalink
Update version to 4.2.0 (#681)
Browse files Browse the repository at this point in the history
* update version to 4.2.0
* document how to release a new version
  • Loading branch information
JoC0de authored Dec 22, 2024
1 parent 302fb6b commit b3ba257
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetForUnity/Editor/Ui/NugetPreferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class NugetPreferences : SettingsProvider
/// <summary>
/// The current version of NuGet for Unity.
/// </summary>
public const string NuGetForUnityVersion = "4.1.1";
public const string NuGetForUnityVersion = "4.2.0";

private const float LabelPading = 5;

Expand Down
2 changes: 1 addition & 1 deletion src/NuGetForUnity/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit b3ba257

Please sign in to comment.