Skip to content

Commit 6420203

Browse files
authored
Revert "[NpmV1] Replace sync execution with async (#20119)" (#20207)
* Revert "[NpmV1] Replace sync execution with async (#20119)" This reverts commit 08c66d0. * Bump task version
1 parent eb37989 commit 6420203

13 files changed

+226
-226
lines changed

Tasks/NpmV1/npmcustom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
2626
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
2727
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));
2828

29-
await npm.exec();
29+
npm.execSync();
3030

3131
tl.rmRF(npmrc);
3232
tl.rmRF(util.getTempPath());

Tasks/NpmV1/npmpublish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
2222
const npm = new NpmToolRunner(workingDir, npmrc, true);
2323
npm.line('publish');
2424

25-
await npm.exec();
25+
npm.execSync();
2626

2727
tl.rmRF(npmrc);
2828
tl.rmRF(util.getTempPath());

Tasks/NpmV1/task.json

+205-205
Large diffs are not rendered by default.

Tasks/NpmV1/task.loc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 242,
12+
"Minor": 243,
1313
"Patch": 0
1414
},
1515
"runsOn": [

_generated/NpmV1.versionmap.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Default|1.242.0
2-
Node20_229_1|1.242.1
1+
Default|1.243.0
2+
Node20_229_1|1.243.1

_generated/NpmV1/npmcustom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
2626
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
2727
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));
2828

29-
await npm.exec();
29+
npm.execSync();
3030

3131
tl.rmRF(npmrc);
3232
tl.rmRF(util.getTempPath());

_generated/NpmV1/npmpublish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
2222
const npm = new NpmToolRunner(workingDir, npmrc, true);
2323
npm.line('publish');
2424

25-
await npm.exec();
25+
npm.execSync();
2626

2727
tl.rmRF(npmrc);
2828
tl.rmRF(util.getTempPath());

_generated/NpmV1/task.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 242,
12+
"Minor": 243,
1313
"Patch": 0
1414
},
1515
"runsOn": [
@@ -208,7 +208,7 @@
208208
"UnsupportedServiceConnectionAuth": "The service connection does not use a supported authentication method. Please use a service connection with personal access token based auth."
209209
},
210210
"_buildConfigMapping": {
211-
"Default": "1.242.0",
212-
"Node20_229_1": "1.242.1"
211+
"Default": "1.243.0",
212+
"Node20_229_1": "1.243.1"
213213
}
214214
}

_generated/NpmV1/task.loc.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 242,
12+
"Minor": 243,
1313
"Patch": 0
1414
},
1515
"runsOn": [
@@ -208,7 +208,7 @@
208208
"UnsupportedServiceConnectionAuth": "ms-resource:loc.messages.UnsupportedServiceConnectionAuth"
209209
},
210210
"_buildConfigMapping": {
211-
"Default": "1.242.0",
212-
"Node20_229_1": "1.242.1"
211+
"Default": "1.243.0",
212+
"Node20_229_1": "1.243.1"
213213
}
214214
}

_generated/NpmV1_Node20/npmcustom.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function run(packagingLocation: PackagingLocation, command?: string
2626
const npm = new NpmToolRunner(workingDir, npmrc, overrideNpmrc);
2727
npm.line(command || tl.getInput(NpmTaskInput.CustomCommand, true));
2828

29-
await npm.exec();
29+
npm.execSync();
3030

3131
tl.rmRF(npmrc);
3232
tl.rmRF(util.getTempPath());

_generated/NpmV1_Node20/npmpublish.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export async function run(packagingLocation: PackagingLocation): Promise<void> {
2222
const npm = new NpmToolRunner(workingDir, npmrc, true);
2323
npm.line('publish');
2424

25-
await npm.exec();
25+
npm.execSync();
2626

2727
tl.rmRF(npmrc);
2828
tl.rmRF(util.getTempPath());

_generated/NpmV1_Node20/task.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 242,
12+
"Minor": 243,
1313
"Patch": 1
1414
},
1515
"runsOn": [
@@ -212,7 +212,7 @@
212212
"UnsupportedServiceConnectionAuth": "The service connection does not use a supported authentication method. Please use a service connection with personal access token based auth."
213213
},
214214
"_buildConfigMapping": {
215-
"Default": "1.242.0",
216-
"Node20_229_1": "1.242.1"
215+
"Default": "1.243.0",
216+
"Node20_229_1": "1.243.1"
217217
}
218218
}

_generated/NpmV1_Node20/task.loc.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "Microsoft Corporation",
1010
"version": {
1111
"Major": 1,
12-
"Minor": 242,
12+
"Minor": 243,
1313
"Patch": 1
1414
},
1515
"runsOn": [
@@ -212,7 +212,7 @@
212212
"UnsupportedServiceConnectionAuth": "ms-resource:loc.messages.UnsupportedServiceConnectionAuth"
213213
},
214214
"_buildConfigMapping": {
215-
"Default": "1.242.0",
216-
"Node20_229_1": "1.242.1"
215+
"Default": "1.243.0",
216+
"Node20_229_1": "1.243.1"
217217
}
218218
}

0 commit comments

Comments
 (0)