mirror of
https://github.com/actions/setup-node.git
synced 2026-02-14 17:54:50 +08:00
Explicitly exit the process to not wait for hanging promises
See https://github.com/actions/setup-node/issues/878
This commit is contained in:
@@ -77,6 +77,10 @@ export async function run() {
|
||||
} catch (err) {
|
||||
core.setFailed((err as Error).message);
|
||||
}
|
||||
|
||||
// Explicit process.exit() to not wait for hanging promises,
|
||||
// see https://github.com/actions/setup-node/issues/878
|
||||
process.exit();
|
||||
}
|
||||
|
||||
function resolveVersionInput(): string {
|
||||
|
||||
Reference in New Issue
Block a user