fix workflow things

This commit is contained in:
7w1 committed 2026-07-26 14:20:40 -05:00
1 parent b6410dfae9
commit 75dba2d7ed
3 files changed
+9 -4

No files matched your search

+3 -2
View File
@@ -3,6 +3,8 @@
import { execSync } from 'node:child_process';
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import { pathToFileURL } from 'node:url';
export function computeNightlyVersion(baseVersion, timestamp = new Date()) {
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(baseVersion);
@@ -84,8 +86,7 @@ export function resolveReleaseMeta({
};
}
const isMain =
process.argv[1] && import.meta.url === `file:///${process.argv[1].replace(/\\/g, '/')}`;
const isMain = process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href;
if (isMain) {
try {
const meta = resolveReleaseMeta({