mirror of
https://github.com/zadam/trilium.git
synced 2026-03-04 04:16:09 +01:00
fix(ci): sanity check does not account for version prefix
This commit is contained in:
parent
b35e0b906f
commit
c96114992e
@ -11,12 +11,16 @@ const filesToCheck = [
|
||||
]
|
||||
|
||||
function main() {
|
||||
const expectedVersion = process.argv[2];
|
||||
let expectedVersion = process.argv[2];
|
||||
if (!expectedVersion) {
|
||||
console.error('Expected version argument is missing.');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (expectedVersion.startsWith("v")) {
|
||||
expectedVersion = expectedVersion.substring(1);
|
||||
}
|
||||
|
||||
for (const fileToCheck of filesToCheck) {
|
||||
const packageJsonPath = join(projectRoot, fileToCheck);
|
||||
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user