Skip to content

Commit

Permalink
[NpmV1] Replace sync execution with async (#20119)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiBobreshev authored Jul 8, 2024
1 parent 7a28591 commit 08c66d0
Show file tree
Hide file tree
Showing 13 changed files with 226 additions and 226 deletions.
2 changes: 1 addition & 1 deletion Tasks/NpmV1/npmcustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NpmV1/npmpublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
const npm = new NpmToolRunner(workingDir, npmrc, true);
npm.line('publish');

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
410 changes: 205 additions & 205 deletions Tasks/NpmV1/task.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Tasks/NpmV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 241,
"Minor": 242,
"Patch": 0
},
"runsOn": [
Expand Down
4 changes: 2 additions & 2 deletions _generated/NpmV1.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|1.241.0
Node20_229_1|1.241.1
Default|1.242.0
Node20_229_1|1.242.1
2 changes: 1 addition & 1 deletion _generated/NpmV1/npmcustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
2 changes: 1 addition & 1 deletion _generated/NpmV1/npmpublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
const npm = new NpmToolRunner(workingDir, npmrc, true);
npm.line('publish');

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
6 changes: 3 additions & 3 deletions _generated/NpmV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 241,
"Minor": 242,
"Patch": 0
},
"runsOn": [
Expand Down Expand Up @@ -208,7 +208,7 @@
"UnsupportedServiceConnectionAuth": "The service connection does not use a supported authentication method. Please use a service connection with personal access token based auth."
},
"_buildConfigMapping": {
"Default": "1.241.0",
"Node20_229_1": "1.241.1"
"Default": "1.242.0",
"Node20_229_1": "1.242.1"
}
}
6 changes: 3 additions & 3 deletions _generated/NpmV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 241,
"Minor": 242,
"Patch": 0
},
"runsOn": [
Expand Down Expand Up @@ -208,7 +208,7 @@
"UnsupportedServiceConnectionAuth": "ms-resource:loc.messages.UnsupportedServiceConnectionAuth"
},
"_buildConfigMapping": {
"Default": "1.241.0",
"Node20_229_1": "1.241.1"
"Default": "1.242.0",
"Node20_229_1": "1.242.1"
}
}
2 changes: 1 addition & 1 deletion _generated/NpmV1_Node20/npmcustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
2 changes: 1 addition & 1 deletion _generated/NpmV1_Node20/npmpublish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
const npm = new NpmToolRunner(workingDir, npmrc, true);
npm.line('publish');

npm.execSync();
await npm.exec();

tl.rmRF(npmrc);
tl.rmRF(util.getTempPath());
Expand Down
6 changes: 3 additions & 3 deletions _generated/NpmV1_Node20/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 241,
"Minor": 242,
"Patch": 1
},
"runsOn": [
Expand Down Expand Up @@ -212,7 +212,7 @@
"UnsupportedServiceConnectionAuth": "The service connection does not use a supported authentication method. Please use a service connection with personal access token based auth."
},
"_buildConfigMapping": {
"Default": "1.241.0",
"Node20_229_1": "1.241.1"
"Default": "1.242.0",
"Node20_229_1": "1.242.1"
}
}
6 changes: 3 additions & 3 deletions _generated/NpmV1_Node20/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 241,
"Minor": 242,
"Patch": 1
},
"runsOn": [
Expand Down Expand Up @@ -212,7 +212,7 @@
"UnsupportedServiceConnectionAuth": "ms-resource:loc.messages.UnsupportedServiceConnectionAuth"
},
"_buildConfigMapping": {
"Default": "1.241.0",
"Node20_229_1": "1.241.1"
"Default": "1.242.0",
"Node20_229_1": "1.242.1"
}
}

0 comments on commit 08c66d0

Please sign in to comment.