Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36481,7 +36481,7 @@ class UnityVersion {
const validReleases = versions
.map(release => semver.coerce(release))
.filter(release => release && semver.satisfies(release, `^${this.semVer}`))
.sort((a, b) => semver.compare(b, a));
.sort((a, b) => semver.compare(a, b));
core.debug(`Searching for fallback match for ${this.version}:`);
validReleases.forEach(release => {
core.debug(` > ${release}`);
Expand Down Expand Up @@ -46678,7 +46678,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
const { blockQuote, commentString, lineWidth } = ctx.options;
// 1. Block can't end in whitespace unless the last line is non-empty.
// 2. Strings consisting of only whitespace are best rendered explicitly.
if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
if (!blockQuote || /\n[\t ]+$/.test(value)) {
return quotedString(value, ctx);
}
const indent = ctx.indent ||
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-setup",
"version": "1.2.2",
"version": "1.2.3",
"description": "A GitHub action for setting up the Unity Game Engine for CI/CD workflows.",
"author": "RageAgainstThePixel",
"license": "MIT",
Expand Down Expand Up @@ -30,19 +30,19 @@
"@electron/asar": "^3.4.1",
"@rage-against-the-pixel/unity-releases-api": "^1.0.1",
"semver": "^7.7.2",
"yaml": "^2.8.0"
"yaml": "^2.8.1"
},
"devDependencies": {
"@types/node": "^22.17.0",
"@types/semver": "^7.7.0",
"@vercel/ncc": "^0.34.0",
"shx": "^0.3.4",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
},
"scripts": {
"build": "npm run clean && npm run bundle",
"bundle": "ncc build src/index.ts -o dist --source-map --license licenses.txt",
"watch": "ncc build src/index.ts -o dist --source-map --license licenses.txt --watch",
"clean": "npm install && shx rm -rf dist/ out/ node_modules/ && npm ci"
}
}
}
2 changes: 1 addition & 1 deletion src/unity-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class UnityVersion {
const validReleases = versions
.map(release => semver.coerce(release))
.filter(release => release && semver.satisfies(release, `^${this.semVer}`))
.sort((a, b) => semver.compare(b, a));
.sort((a, b) => semver.compare(a, b)); // sort from lowest to highest
core.debug(`Searching for fallback match for ${this.version}:`);
validReleases.forEach(release => {
core.debug(` > ${release}`);
Expand Down
Loading