Skip to content

Commit

Permalink
ci: update prod commands
Browse files Browse the repository at this point in the history
Signed-off-by: Grzegorz Choiński <[email protected]>
  • Loading branch information
Wallted committed Jan 26, 2024
1 parent 0fbae10 commit 612d5bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: npm install

- name: Run build command
run: npm run build
run: npm run build-prod
2 changes: 2 additions & 0 deletions Foodie/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"build-prod": "ng build --configuration production",
"build:ssr": "ng run Foodie:server:dev",
"build-prod:ssr": "ng run Foodie:server:production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
Expand Down
4 changes: 2 additions & 2 deletions Foodie/Foodie.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build -- --prod" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build:ssr -- --prod" Condition=" '$(BuildServerSideRenderer)' == 'true' " />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build-prod" />
<Exec WorkingDirectory="$(SpaRoot)" Command="npm run build-prod:ssr" Condition=" '$(BuildServerSideRenderer)' == 'true' " />

<!-- Include the newly-built files in the publish output -->
<ItemGroup>
Expand Down

0 comments on commit 612d5bb

Please sign in to comment.