提交 e67d63eb 编写于 作者: 麦壳饼's avatar 麦壳饼

修改

上级 7f138ad3
......@@ -34,12 +34,15 @@ jobs:
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# setup nodejs 16
- uses: actions/setup-node@v3
name: Setup Node.Js 16
- name: Setup Node.Js 16
uses: actions/setup-node@v3
with:
node-version: 16
env:
NODE_OPTIONS: --openssl-legacy-provider
- name: Config NPM Registry
run: npm config set registry https://registry.npmmirror.com
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
......
......@@ -106,11 +106,11 @@
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm config set registry https://registry.npmmirror.com ;export NODE_OPTIONS=--openssl-legacy-provider;npm install --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --legacy-peer-deps" />
</Target>
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish" Condition="'$(Configuration)' == 'Release'">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm config set registry https://registry.npmmirror.com ;export NODE_OPTIONS=--openssl-legacy-provider;npm install --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install --legacy-peer-deps" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build" />
<!-- Include the newly-built files in the publish output -->
<ItemGroup>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册