Skip to content

Commit 6765fd0

Browse files
authored
Update npm publishing configuration
1 parent 1f892d7 commit 6765fd0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build/publish/Publish.csproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,11 @@
127127
Command="npm config set "$(AuthTokenSetting)" $(PublishMyGetFeedKey)"
128128
StandardOutputImportance="Normal" />
129129

130-
<!-- When you UseCommandProcessor FileName is ignored -->
131-
<Run Condition=" @(NpmPackageToPublish->Count()) != 0 "
132-
FileName="cmd"
133-
Arguments="npm;publish;--registry;$(PublishMyGetNpmRegistryUrl);%(NpmPackageToPublish.Identity)"
134-
MaxRetries="5"
135-
UseCommandProcessor="true"
136-
ContinueOnError="true">
130+
<Exec Condition=" @(NpmPackageToPublish->Count()) != 0 "
131+
Command="npm publish --registry '$(PublishMyGetNpmRegistryUrl)' '%(NpmPackageToPublish.Identity)'"
132+
ContinueOnError="true">
137133
<Output TaskParameter="ExitCode" ItemName="_NpmExitCodes" />
138-
</Run>
134+
</Exec>
139135

140136
<Exec Condition=" @(NpmPackageToPublish->Count()) != 0 "
141137
Command="npm config delete $(AuthTokenSetting)"

0 commit comments

Comments
 (0)