com.wallstop-studios.unity-helpers 2.0.0-rc30 → 2.0.0-rc32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: Publish to NPM
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - main # Change this to your default branch
6
+ - main
7
7
  paths:
8
8
  - 'package.json'
9
9
 
@@ -3,7 +3,7 @@ name: Export and Release Unity Package
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - main # Change to your default branch
6
+ - main
7
7
  paths:
8
8
  - 'package.json'
9
9
 
@@ -15,7 +15,7 @@ jobs:
15
15
  - name: Checkout Repository
16
16
  uses: actions/checkout@v4
17
17
  with:
18
- fetch-depth: 0 # Ensures full git history for version comparison
18
+ fetch-depth: 0 # Ensure full commit history for version comparison
19
19
 
20
20
  - name: Set up Node.js
21
21
  uses: actions/setup-node@v4
@@ -35,9 +35,9 @@ jobs:
35
35
  echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
36
36
  echo "should_build=true" >> $GITHUB_ENV
37
37
 
38
- # Check if version contains "rc" (release candidate)
38
+ # Check for pre-release versions
39
39
  if [[ "$NEW_VERSION" == *"rc"* ]]; then
40
- echo "This is a release candidate (pre-release)."
40
+ echo "This is a pre-release (next tag)."
41
41
  echo "IS_PRERELEASE=true" >> $GITHUB_ENV
42
42
  else
43
43
  echo "This is a stable release."
@@ -48,12 +48,22 @@ jobs:
48
48
  echo "should_build=false" >> $GITHUB_ENV
49
49
  fi
50
50
 
51
+ - name: Activate Unity License
52
+ if: env.should_build == 'true'
53
+ env:
54
+ UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
55
+ run: |
56
+ echo "$UNITY_LICENSE" | base64 --decode > UnityLicense.ulf
57
+ echo "Unity license activated."
58
+
51
59
  - name: Set up Unity
52
60
  if: env.should_build == 'true'
53
61
  uses: game-ci/unity-builder@v3
54
62
  with:
55
63
  unityVersion: 2022.3.10f1 # Change to your Unity version
56
64
  targetPlatform: StandaloneLinux64
65
+ activateLicense: true
66
+ unityLicense: ${{ secrets.UNITY_LICENSE }}
57
67
 
58
68
  - name: Export Unity Package
59
69
  if: env.should_build == 'true'
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # A Grab-Bag
2
2
  Various Unity Helpers. Includes many deterministic, seedable random number generators.
3
3
 
4
+ # CI/CD Status
5
+ ![Npm Publish](https://github.com/wallstop/unity-helpers/actions/workflows/npm-publish.yml/badge.svg)
6
+ ![Deploy](https://github.com/wallstop/unity-helpers/actions/workflows/unity-package.yml/badge.svg)
7
+
4
8
  # Compatibility
5
9
  | Platform | Compatible |
6
10
  | --- | --- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc30",
3
+ "version": "2.0.0-rc32",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},