From 5f3f74c689232e537fa58191669ef9b1624e4239 Mon Sep 17 00:00:00 2001 From: Kengo TODA Date: Mon, 2 Aug 2021 20:14:49 +0800 Subject: [PATCH] run clean-up tasks in serial --- dist/cleanup/index.js | 3 ++- src/cleanup-java.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 9c81d397..bf3de9dc 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -6230,7 +6230,8 @@ function ignoreError(promise) { } function run() { return __awaiter(this, void 0, void 0, function* () { - yield Promise.all([removePrivateKeyFromKeychain(), ignoreError(saveCache())]); + yield removePrivateKeyFromKeychain(); + yield ignoreError(saveCache()); }); } exports.run = run; diff --git a/src/cleanup-java.ts b/src/cleanup-java.ts index b1cfb710..b0a3b273 100644 --- a/src/cleanup-java.ts +++ b/src/cleanup-java.ts @@ -42,7 +42,8 @@ async function ignoreError(promise: Promise) { } export async function run() { - await Promise.all([removePrivateKeyFromKeychain(), ignoreError(saveCache())]); + await removePrivateKeyFromKeychain(); + await ignoreError(saveCache()); } if (require.main === module) {