better warnings, fix ci failing
This commit is contained in:
parent
0b54beb9ce
commit
ebd802865f
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@ -136,7 +136,6 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
content:
|
content:
|
||||||
- "1.1.0"
|
- "1.1.0"
|
||||||
- "latest"
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
@ -57,9 +57,12 @@ export function readVersionFromFile(
|
|||||||
let output: string | undefined;
|
let output: string | undefined;
|
||||||
try {
|
try {
|
||||||
output = reader(readFileSync(path, "utf8"))?.trim();
|
output = reader(readFileSync(path, "utf8"))?.trim();
|
||||||
console.log(output);
|
|
||||||
|
if (!output) {
|
||||||
|
warning(`Failed to read version from ${file}`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
|
||||||
const { message } = error as Error;
|
const { message } = error as Error;
|
||||||
warning(`Failed to read ${file}: ${message}`);
|
warning(`Failed to read ${file}: ${message}`);
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user