Explicitly exit process for CI
This commit is contained in:
parent
ff2d932904
commit
b84e5271f4
2 changed files with 5 additions and 0 deletions
3
.github/workflows/cli_tests.yml
vendored
3
.github/workflows/cli_tests.yml
vendored
|
|
@ -36,3 +36,6 @@ jobs:
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
env:
|
||||||
|
NPM_CONFIG_YES: true
|
||||||
|
CI: true
|
||||||
|
|
|
||||||
|
|
@ -287,6 +287,8 @@ async function main(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const args = parseArgs();
|
const args = parseArgs();
|
||||||
await callMethod(args);
|
await callMethod(args);
|
||||||
|
// Explicitly exit to ensure process terminates in CI
|
||||||
|
process.exit(0);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue