Skip to content

Commit 09afb64

Browse files
unity-setup@v1.2.3 (#40)
- fix partial version lookup matching, sort lowest first
1 parent a7cbd00 commit 09afb64

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36481,7 +36481,7 @@ class UnityVersion {
3648136481
const validReleases = versions
3648236482
.map(release => semver.coerce(release))
3648336483
.filter(release => release && semver.satisfies(release, `^${this.semVer}`))
36484-
.sort((a, b) => semver.compare(b, a));
36484+
.sort((a, b) => semver.compare(a, b));
3648536485
core.debug(`Searching for fallback match for ${this.version}:`);
3648636486
validReleases.forEach(release => {
3648736487
core.debug(` > ${release}`);
@@ -46678,7 +46678,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
4667846678
const { blockQuote, commentString, lineWidth } = ctx.options;
4667946679
// 1. Block can't end in whitespace unless the last line is non-empty.
4668046680
// 2. Strings consisting of only whitespace are best rendered explicitly.
46681-
if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
46681+
if (!blockQuote || /\n[\t ]+$/.test(value)) {
4668246682
return quotedString(value, ctx);
4668346683
}
4668446684
const indent = ctx.indent ||

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-setup",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "A GitHub action for setting up the Unity Game Engine for CI/CD workflows.",
55
"author": "RageAgainstThePixel",
66
"license": "MIT",
@@ -30,19 +30,19 @@
3030
"@electron/asar": "^3.4.1",
3131
"@rage-against-the-pixel/unity-releases-api": "^1.0.1",
3232
"semver": "^7.7.2",
33-
"yaml": "^2.8.0"
33+
"yaml": "^2.8.1"
3434
},
3535
"devDependencies": {
3636
"@types/node": "^22.17.0",
3737
"@types/semver": "^7.7.0",
3838
"@vercel/ncc": "^0.34.0",
3939
"shx": "^0.3.4",
40-
"typescript": "^5.8.3"
40+
"typescript": "^5.9.2"
4141
},
4242
"scripts": {
4343
"build": "npm run clean && npm run bundle",
4444
"bundle": "ncc build src/index.ts -o dist --source-map --license licenses.txt",
4545
"watch": "ncc build src/index.ts -o dist --source-map --license licenses.txt --watch",
4646
"clean": "npm install && shx rm -rf dist/ out/ node_modules/ && npm ci"
4747
}
48-
}
48+
}

src/unity-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class UnityVersion {
6060
const validReleases = versions
6161
.map(release => semver.coerce(release))
6262
.filter(release => release && semver.satisfies(release, `^${this.semVer}`))
63-
.sort((a, b) => semver.compare(b, a));
63+
.sort((a, b) => semver.compare(a, b)); // sort from lowest to highest
6464
core.debug(`Searching for fallback match for ${this.version}:`);
6565
validReleases.forEach(release => {
6666
core.debug(` > ${release}`);

0 commit comments

Comments
 (0)