diff --git a/Tasks/NpmAuthenticateV0/npmauth.ts b/Tasks/NpmAuthenticateV0/npmauth.ts index 2ce88491cc00..12eadb317b8e 100644 --- a/Tasks/NpmAuthenticateV0/npmauth.ts +++ b/Tasks/NpmAuthenticateV0/npmauth.ts @@ -118,6 +118,9 @@ async function main(): Promise { main().catch(error => { if(tl.getVariable("NPM_AUTHENTICATE_TEMP_DIRECTORY")) { tl.rmRF(tl.getVariable("NPM_AUTHENTICATE_TEMP_DIRECTORY")); + // Clear the variables after we rm-rf the main root directory + tl.setVariable("SAVE_NPMRC_PATH", "", false); + tl.setVariable("NPM_AUTHENTICATE_TEMP_DIRECTORY", "", false); } tl.setResult(tl.TaskResult.Failed, error); }); diff --git a/Tasks/NpmAuthenticateV0/task.json b/Tasks/NpmAuthenticateV0/task.json index 707ea00940d3..2bd6aea4196f 100644 --- a/Tasks/NpmAuthenticateV0/task.json +++ b/Tasks/NpmAuthenticateV0/task.json @@ -9,7 +9,7 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 198, + "Minor": 200, "Patch": 0 }, "runsOn": [ diff --git a/Tasks/NpmAuthenticateV0/task.loc.json b/Tasks/NpmAuthenticateV0/task.loc.json index e3564dd1ba48..116c98c34eda 100644 --- a/Tasks/NpmAuthenticateV0/task.loc.json +++ b/Tasks/NpmAuthenticateV0/task.loc.json @@ -9,7 +9,7 @@ "author": "Microsoft Corporation", "version": { "Major": 0, - "Minor": 198, + "Minor": 200, "Patch": 0 }, "runsOn": [